//========================================================================================
//  
//  $File: $
//  
//  Owner: Vu Tiet
//  
//  $Author: $
//  
//  $DateTime: $
//  
//  $Revision: $
//  
//  $Change: $
//  
//  Copyright 1997-2008 Adobe Systems Incorporated. All rights reserved.
//  
//  NOTICE:  Adobe permits you to use, modify, and distribute this file in accordance 
//  with the terms of the Adobe license agreement accompanying it.  If you have received
//  this file from a source other than Adobe, then your use, modification, or 
//  distribution of it requires the prior written permission of Adobe.
//  
//========================================================================================

#include "VCPlugInHeaders.h"

// General includes:
#include "MenuDef.fh"
#include "ActionDef.fh"
#include "ActionDefs.h"
#include "AdobeMenuPositions.h"
#include "LocaleIndex.h"
#include "PMLocaleIds.h"
#include "StringTable.fh"
//#include "OMTypes.h"
#include "objectmodeltypes.fh"
#include "ShuksanID.h"
#include "ActionID.h"
#include "CommandID.h"
#include "WorkspaceID.h"
#include "widgetid.h"
#include "BuildNumber.h"
#include "PanelList.fh"
#include "Widgets.fh"	// for PalettePanelWidget
#include "InterfaceColorDefines.h"
#include "IControlViewDefs.h"
#include "SysControlIds.h"
#include "AboutBoxID.h"		// for kAboutBoxStaticTextViewImpl
#include "TreeViewDefs.h"
#include "IconStyleDefs.h" // for icon widget resource PNGIconAttributes
#include "PlugInModel_UIAttributes.h"

// Project includes:
#include "SDKSharedPNG.fr"

// Project includes:
#include "AMPID.h"
#include "GenericID.h"
#include "ShuksanID.h"
#include "TextID.h"
#include "ImageID.h"
//TOAN editing...
//////###############################
#include "TextID.h"
#include "iconFrame/FrmLblScriptingDefs.h"
#include "ScriptInfoTypes.fh"
#include "BuildNumber.h"
#include "ErrorTableTypes.h" // for UserErrorTable
#include "TablesID.h"
#include "iconFrame/FrmLblID.h"
//////###############################
#ifdef __ODFRC__

/*  Plugin version definition.
*/
resource PluginVersion (kSDKDefPluginVersionResourceID)
{
	kTargetVersion,
	kAMPPluginID,
	kSDKDefPlugInMajorVersionNumber, kSDKDefPlugInMinorVersionNumber,
	kSDKDefHostMajorVersionNumber, kSDKDefHostMinorVersionNumber,
	kAMPCurrentMajorFormatNumber, kAMPCurrentMinorFormatNumber,
	{ kInDesignProduct },
	//{ kInDesignProduct, kInCopyProduct, kInDesignServerProduct},
	{ kWildFS },
	kModelPlugIn,
	kAMPVersion
};

/*  The ExtraPluginInfo resource adds extra information to the Missing Plug-in dialog
	that is popped when a document containing this plug-in's data is opened when
	this plug-in is not present. These strings are not translatable strings
	since they must be available when the plug-in isn't around. They get stored
	in any document that this plug-in contributes data to.
*/
resource ExtraPluginInfo(1)
{
	kAMPCompanyValue,			// Company name
	kAMPMissingPluginURLValue,	// URL 
	kAMPMissingPluginAlertValue,	// Missing plug-in alert text
};

//////////////########################////////////////////////////
/*
//	IgnoreTags - mark these impls/classIDs as ignore so that when a document that
//	contains FrameLabel data is opened without the plug-in present the 
//	Missing Plug-ins alert does not get popped. This plug-in's data is not critical
//	to the functioning of the document so the user does not need to be warned
//	(if it was the CriticalTags statement would be used to make sure the
//	user gets alerted).
*/
resource IgnoreTags(1)
{
	kImplementationIDSpace, 
	{
		kFrmLblDataImpl,
	}
};

resource IgnoreTags(2)
{
	kClassIDSpace,
	{
		kFrmLblAdornmentBoss,
	}
};

/* SchemaList: a history of the persistent data formats supported by this plug-in
*/
resource SchemaList(1)
{{
    Schema
    {
        kFrmLblDataImpl,
        {kFrmLbl_1J_MajorFormat, kFrmLbl_1J_MinorFormat},
        {
            {PMString	{kFrmLblLabel, 		kFrmLblDefaultLabel}},
            {Int32		{kFrmLblLabelWidth,	kFrmLblDefaultWidth}},
            {Int32		{kFrmLblPointSize, 	kFrmLblDefaultPointSize}},
            {Bool16		{kFrmLblVisibility,	kFrmLblDefaultVisibility}},
			{Int32		{kFrmLblstatus, 	kDownloadableStatus}},
        }
    };
    
    Schema
    {
        kFrmLblDataImpl,
        {kFrmLblLastMajorFormatChange, kFrmLblLastMinorFormatChange},
        {
            {WideString	{kFrmLblLabel, 		kFrmLblDefaultLabel}},
            
            //this field has been removed
            //{Int32		{kFrmLblLabelWidth,	kFrmLblDefaultWidth}},           
            
            {Int32		{kFrmLblPointSize, 	kFrmLblDefaultPointSize}},
            {Bool16		{kFrmLblVisibility,	kFrmLblDefaultVisibility}},
            {Int32		{kFrmLblColor, 		kFrmLblDefaultColor}},
            {Int32		{kFrmLblPosition,	kFrmLblDefaultPosition}},
			{Int32		{kFrmLblstatus,		kDownloadableStatus}},
        }
    };
    
    
}};

//////////////########################////////////////////////////
/* Boss class definition.
*/
resource ClassDescriptionTable(kSDKDefClassDescriptionTableResourceID)
{{{
	////////<---- Toan add
	/** Attaches LnkWtchCacheManager to before open documents.
		@ingroup linkwatcher
	*/

	Class
	{
		kLnkWtchAfterOpenDocResponderBoss,
		kInvalidClass,
		{
			/** See LnkWtchDocResponder.
			 */
			IID_IRESPONDER,				kLnkWtchDocResponderImpl,

			/** Provided by API.
			 */
			IID_IK2SERVICEPROVIDER,		kAfterOpenDocSignalRespServiceImpl,
		}
	},

	/** Attaches LnkWtchCacheManager to before close documents.
		@ingroup linkwatcher
	*/
	Class
	{
		kLnkWtchBeforeCloseDocResponderBoss,
		kInvalidClass,
		{
			/** See LnkWtchDocResponder.
			 */
			IID_IRESPONDER,				kLnkWtchDocResponderImpl,

			/** Provided by API.
			 */
			IID_IK2SERVICEPROVIDER,		kBeforeCloseDocSignalRespServiceImpl,
		}
	},
	
	/** Attaches LnkWtchCacheManager to after close documents.
		@ingroup linkwatcher
	*/
	Class
	{
		kLnkWtchAfterCloseDocResponderBoss,
		kInvalidClass,
		{
			/** See LnkWtchDocResponder.
			 */
			IID_IRESPONDER,				kLnkWtchDocResponderImpl,

			/** Provided by API.
			 */
			IID_IK2SERVICEPROVIDER,		kAfterCloseDocSignalRespServiceImpl,
		}
	},
	
	/** Attaches LnkWtchCacheManager to before save documents.
		@ingroup linkwatcher
	*/
	Class
	{
		kLnkWtchBeforeSaveDocResponderBoss,
		kInvalidClass,
		{
			/** See LnkWtchDocResponder.
			 */
			IID_IRESPONDER,				kLnkWtchDocResponderImpl,

			/** Provided by API.
			 */
			IID_IK2SERVICEPROVIDER,		kBeforeSaveDocSignalRespServiceImpl,
		}
	},
	
	/** Attaches LnkWtchCacheManager to before save documents.
		@ingroup linkwatcher
	*/
	Class
	{
		kLnkWtchBeforeSaveAsDocResponderBoss,
		kInvalidClass,
		{
			/** See LnkWtchDocResponder.
			 */
			IID_IRESPONDER,				kLnkWtchDocResponderImpl,

			/** Provided by API.
			 */
			IID_IK2SERVICEPROVIDER,		kBeforeSaveAsDocSignalRespServiceImpl,
		}
	},
	
	/** Attaches LnkWtchCacheManager to after save documents.
		@ingroup linkwatcher
	*/
	Class
	{
		kLnkWtchAfterSaveAsDocResponderBoss,
		kInvalidClass,
		{
			/** See LnkWtchDocResponder.
			 */
			IID_IRESPONDER,				kLnkWtchDocResponderImpl,

			/** Provided by API.
			 */
			IID_IK2SERVICEPROVIDER,		kAfterSaveAsDocSignalRespServiceImpl,//kExportServiceImpl
		}
	},

	////////----> Toan add
	/**
	This boss provides the service of responding to document file actions.
	It has two interfaces: one that tells InDesign what kind of service is
	provided, and a second to provide the service.
	@ingroup docwatch
	*/
	
	/** Adds ISnipRunSuite to the abstract selection boss.
		@ingroup snippetrunner
	*/
	AddIn
	{
		kIntegratorSuiteBoss,
		kInvalidClass,
		{
			/** @see ISnipRunSuite, SnipRunSuiteASB.
			*/
			IID_ISNIPRUNSUITE, kSnipRunSuiteASBImpl,
		}
	},

	/** Adds ISnipRunSuite & ISnpRunnableContext to the layout selection suite boss.
		@ingroup snippetrunner
	*/
	AddIn
	{
		kLayoutSuiteBoss,
		kInvalidClass,
		{
			/** @see ISnipRunSuite, SnipRunSuiteCSB
			*/
			IID_ISNIPRUNSUITE, kSnipRunSuiteCSBImpl,
			/** @see ISnpRunnableContext, SnpRunnableContextCSB.
			*/
			IID_ISNPRUNNABLECONTEXT, kSnpRunnableContextCSBImpl,
		}
	},

	/** Adds ISnipRunSuite & ISnpRunnableContext to the text suite boss.		
		@ingroup snippetrunner
	*/
	AddIn
	{
		kTextSuiteBoss,
		kInvalidClass,
		{
			/** @see ISnipRunSuite, SnipRunSuiteCSB
			*/
			IID_ISNIPRUNSUITE, kSnipRunSuiteCSBImpl,
			/** @see ISnpRunnableContext, SnpRunnableContextCSB.
			*/
			IID_ISNPRUNNABLECONTEXT, kSnpRunnableContextCSBImpl,
		}
	},

	AddIn
	{
		kSessionBoss,
		kInvalidClass,
		{
			/** Idle task itself, implementation of IIdleTask */
			IID_IPNLTRVIDLETASK, kAMPIssueIdleTaskImpl,
		}
	},
	
	AddIn
	{
		kSessionBoss,
		kInvalidClass,
		{
			/** Idle task itself, implementation of IIdleTask */
			IID_IAMPREQUESTINGTASK, kAMPRequestTaskImpl,
		}
	},

	/**	Adds ISnipRunSuite & ISnpRunnableContext to the document defaults suite boss.
		@ingroup snippetrunner
	*/
	AddIn
	{
		kDocumentDefaultSuiteBoss,
		kInvalidClass,
		{
			/** @see ISnipRunSuite, SnipRunSuiteCSB
			*/
			IID_ISNIPRUNSUITE, kSnipRunSuiteCSBImpl,
			/** @see ISnpRunnableContext, SnpRunnableContextCSB.
			*/
			IID_ISNPRUNNABLECONTEXT, kSnpRunnableContextCSBImpl,
		}
	}

	/**	Adds ISnipRunSuite & ISnpRunnableContext to the application defaults suite boss.
		@ingroup snippetrunner
	*/
	AddIn
	{
		kApplicationDefaultSuiteBoss,
		kInvalidClass,
		{
			/** @see ISnipRunSuite, SnipRunSuiteCSB
			*/
			IID_ISNIPRUNSUITE, kSnipRunSuiteCSBImpl,
			/** @see ISnpRunnableContext, SnpRunnableContextCSB.
			*/
			IID_ISNPRUNNABLECONTEXT, kSnpRunnableContextCSBImpl,
		}
	}
	
	AddIn 
	{ 
		kAppBoss, // (I tried various boss classes, not just this one.) 
		kInvalidClass, 
		{ 
			/** IObserver implementation provided by AMPListBoxSelectionObserver. */
			IID_SELECTIONOBSERVER,			kAMPListBoxSelectionObserverImpl,

		} 
	}

	////////////////////////-DATA: 16-01-2013 BY TOAN//////////////////////////
	///////////////////////////////////////////////////////////////////////////

	Class
	{
		kAMPActionComponentBoss,
		kBaseActionComponentBoss,
		{
			/** Handle the actions from the menu. 
			*/
			IID_IACTIONCOMPONENT, kAMPActionComponentImpl,
		}
	},

	Class
	{
		kAMPluginPanelWidgetBoss,
		kPalettePanelWidgetBoss,
		{
				/** An implementation of ITextControlData, but with interface
				identifier of IID_IPANELMENUDATA, serves to name the popout panel menu.
				Implementation provided by the API.
				*/ 
				IID_IPANELMENUDATA, kCPanelMenuDataImpl,
		}
	},
	
	Class 
	{
		kAMPluginListBoxWidgetBoss,
		kTreeViewWidgetBoss,
		{
			/** IControlViewObservers is aggregated to attach
				the panel's observers.
				Implementation provided by the API.
			*/
			IID_ICONTROLVIEWOBSERVERS, kCControlViewObserversImpl,
			
			/** Furnishes application framework with widgets as needed */
			IID_ITREEVIEWWIDGETMGR,			kAMPTVWidgetMgrImpl,
			/** Adapts our data model to the needs of the application framework */
			IID_ITREEVIEWHIERARCHYADAPTER,  kAMPTVHierarchyAdapterImpl,
			/** Hold names of the list item */
            IID_ISTRINGLISTDATA,			kStringListDataImpl, 
            /** Display selection message */   
  			IID_IOBSERVER,					kAMPListBoxObserverImpl,
			
			/** IObserver implementation provided by AMPListBoxSelectionObserver. */
			//IID_SELECTIONOBSERVER,			kAMPListBoxSelectionObserverImpl,
		}
	},
	
	Class
	{
		kAMPluginTextWidgetBoss,
		kInfoStaticTextWidgetBoss,
		{
			// Add the following interfaces for a white background (they'd override the default.)
			// IID_ICONTROLVIEW, kAboutBoxStaticTextViewImpl,
			// IID_IBOOLDATA, kPersistBoolDataImpl,
		}
	},
	
	Class
	{
		kAMPluginStaticTextWidgetBoss,
		kInfoStaticTextWidgetBoss,
		{
		}
	},
	
	Class
	{
		kAMPluginTreeExpanderBoss,
		kTreeExpanderWidgetBoss,
		{
		}
	},
	
	Class
	{
		kCMSLoginDlgDialogBoss,			//<--20120420
		kDialogBoss,
		{
			/** Provides management and control over the dialog. Implementation of IDialogController.
				@see BscDlgDialogController 
			*/
			IID_IDIALOGCONTROLLER, kDlgCMSLoginDialogControllerImpl,	//<--20120420
			
			/** Allows dynamic processing of dialog changes. Implementation of IObserver.
				@see DlgCMSLoginDialogObserver
			*/
			IID_IOBSERVER, kDlgCMSLoginDialogObserverImpl,		//<--20120420
		}
	},
	
	Class		//<--20120505
	{
		kAMPluginIssuesDialogBoss,	//<--20120505
		kDialogBoss,
		{
			IID_IOBSERVER, kAMPIssuesDlgObserverImpl,	//<--20120505
		}
	},
	
	Class								//<--20120505
	{
		kAMPIssuesTreeViewWidgetBoss,		//<--20120505
		kTreeViewWidgetBoss,
		{
			/** Furnishes application framework with widgets as needed and geometry info */
			IID_ITREEVIEWWIDGETMGR,  kAMPIssuesWidgetMgrImpl,
			/** Observes changes in the selection within the tree-view */
			IID_IOBSERVER, kAMPIssuesDlgObserverImpl,
			/** Adapts our data model to the needs of the application framework */
			IID_ITREEVIEWHIERARCHYADAPTER,  kAMPIssuesHierarchyAdapterImpl,
			
			/** Implements AMPluginDataModel (our custom data model)
				@see AMPIssuesDataModel 
			*/
			IID_IPNLTRVDATAMODEL, kAMPIssuesDataModelImpl,
		}
	},
	
	Class 
	{
		kAMPluginCheckboxWidgetBoss,
		kCheckBoxWidgetBoss,
		{
			/** 
			Flag used to preserve the internal state (selected or otherwise)
			*/
			//IID_IBOOLEANCONTROLDATA,kCBooleanControlDataImpl,
			/** 
			This interface has state data consisting of two integers, one for the default
			state and one for the 'selected' or hilight state. Although it seems to be about fonts, it
			isn't specific to fonts and 
			it is appropriate here since we have two int32 resource IDs that we wish to maintain on
			a data interface. This saves us having to write a custom data interface or use two int-data
			interfaces with different IIDs. 
			*/
			//IID_IUIFONTSPEC, kUIFontSpecImpl
		}
	},
	
	Class
	{
		kAMPIssuesNodeWidgetBoss,		//<--20120505
		kTreeNodeWidgetBoss,
		{
			/** 
			Flag used to preserve the internal state (selected or otherwise)
			*/
			IID_IBOOLEANCONTROLDATA,kCBooleanControlDataImpl,
			/** 
			This interface has state data consisting of two integers, one for the default
			state and one for the 'selected' or hilight state. Although it seems to be about fonts, it
			isn't specific to fonts and 
			it is appropriate here since we have two int32 resource IDs that we wish to maintain on
			a data interface. This saves us having to write a custom data interface or use two int-data
			interfaces with different IIDs. 
			*/
			IID_IUIFONTSPEC, kUIFontSpecImpl
			
			/** The real event handler associated with this control, we delegate to this implementation */
			IID_IPNLTRVSHADOWEVENTHANDLER,  kTreeNodeEventHandlerImpl,
			/** Observer for changes in node state such as expand/contract */
			//IID_IOBSERVER,  kAMPIssuesNodeObserverImpl,
			
			IID_IOBSERVER, kAMPIssuesDlgObserverImpl,
			/** Provides the node with drag source capability for the SysFile
				associated with the widget.
				See PnlTrvDragDropSource. 
			 */
			//IID_IDRAGDROPSOURCE,  kPnlTrvDragDropSourceImpl,
			
			IID_IPNLTRVDATAMODEL, kAMPIssuesDataModelImpl,

			/** What the application framework thinks is the  control's event handler */
			IID_IEVENTHANDLER,  AMPEventNodeEHImpl,
		}
	},
	
	/**
	This boss provide a custom draw implementation on the kGenericPanelWidgetBoss, 
	it illustrates how to change a panel's appearance through overriding IControlView.
	@ingroup paneltreeview
	*/
	Class
	{
		kAMPCViewPanelWidgetBoss,		//<--20120529 : View Image
		kGenericPanelWidgetBoss,
		{
			/** A custom draw implementation
			*/
			IID_ICONTROLVIEW, kAMPCustomViewImpl,		//<--20120529 : View Image
			/** Path to image to preview in this widget */
			IID_ISYSFILEDATA, kSysFileDataImpl,
		}
	},
	
	Class
	{
		kAMPStartupShutdownBoss,
		kInvalidClass,
		{
			/** Implementation of IStartupShutdownService that installs idle task on startup */
			IID_ISTARTUPSHUTDOWN, kAMPStartupShutdownImpl,
			/** identify the service type */
			IID_IK2SERVICEPROVIDER, kCStartupShutdownProviderImpl,
		}
	},
	
	/**	Next button
	 */
	Class
	{
		kNextButtonBoss,
		kRollOverIconButtonBoss,
		{
			/** IControlViewObservers attaches the button's observers,
				implementation provided by the API.
			*/
			IID_ICONTROLVIEWOBSERVERS, kCControlViewObserversImpl,

			/** IObserver implementation provided by SnipRunGoButtonObserver.
			 */
			IID_INEXTBUTTONOBSERVER, kAMPkNextButtonObserverImpl,
		}
	},
	
	/**	Previous button
	 */
	Class
	{
		kPreviousButtonBoss,
		kRollOverIconButtonBoss,
		{
			/** IControlViewObservers attaches the button's observers,
				implementation provided by the API.
			*/
			IID_ICONTROLVIEWOBSERVERS, kCControlViewObserversImpl,

			/** IObserver implementation provided by SnipRunGoButtonObserver.
			 */
			IID_IPREVBUTTONOBSERVER, kAMPkPreviousButtonObserverImpl,
		}
	},
	/* Image Assignment Dialog
	*/
	Class	
	{
		kAMPImgAssignmentDialogBoss,
		kDialogBoss,
		{
			IID_IDIALOGCONTROLLER, kAMPImgAssignmentDlgControllerImpl,
			IID_IOBSERVER, kAMPImgAssignmentDlgObserverImpl,
		}
	},
	
	/* Story Tree View
	*/
	Class 
	{
		kAMPStoryTreeViewWidgetBoss,
		kTreeViewWidgetBoss,
		{
			/** IControlViewObservers is aggregated to attach
				the panel's observers.
				Implementation provided by the API.
			*/
			IID_ICONTROLVIEWOBSERVERS, kCControlViewObserversImpl,
			
			/** Furnishes application framework with widgets as needed */
			IID_ITREEVIEWWIDGETMGR,			kAMPStoriesWidgetMgrImpl,
			/** Adapts our data model to the needs of the application framework */
			IID_ITREEVIEWHIERARCHYADAPTER,  kAMPStoriesHierarchyAdapterImpl,
			/** Hold names of the list item */
	        IID_ISTRINGLISTDATA,			kStringListDataImpl, 
			/** Observes changes in the selection within the tree-view */
			IID_IOBSERVER,					kAMPImgAssignmentDlgObserverImpl,		
			}
	},
	
	// Toan added here to make new menu right mouse click
	//<-- 20120810 : right mouse click
	/**
	 This boss class provides the actions invoked by this plug-in's
	 sub-menu items. It supports two interfaces: 
	 IActionComponent and IPMPersist. We provide the implementation 
	 for IActionComponent in XMLMrkAction.cpp. The other
	 default implementation is provided by the API.
		@ingroup xmlmarkupinjector
	*/
	Class
	{
		kXMLMrkActionComponentBoss,
		kBaseActionComponentBoss,
		{
			/** Handle the actions from the menu. */
			IID_IACTIONCOMPONENT, kXMLMrkActionComponentImpl,
		}
	},



	/**
		This add-in adds our interface (IXMLMrkSuite) to the integrator suite boss class.
		@ingroup xmlmarkupinjector
	*/
	AddIn
	{
		kIntegratorSuiteBoss,
		kInvalidClass,
		{
			/** Implementation based on template. 
			*/
			//IID_IXMLMrkSUITE, kXMLMrkSuiteASBImpl,
		}
	},

	


	/**
		This add-in adds our interface (IXMLMrkSuite) to the text suite boss class.
		@ingroup xmlmarkupinjector
	*/
	AddIn
	{
		//kTextSuiteBoss,
		kLayoutSuiteBoss,
		kInvalidClass,
		{
			/** Implementation on the text suite concrete selection boss
				that marks up the document based on properties of the text selection.
			*/
			IID_IXMLMrkSUITE, kXMLMrkSuiteTextCSBImpl,
		}
	},
	//--> end right mouse click
	
	Class 
	{
		kAMPPicIcoPictureWidgetBoss,//kPicIcoPictureWidgetBoss,
		kIconSuiteWidgetBoss,
		{
			/** 
			We're overriding the left-button down method.
			*/
			//IID_IEVENTHANDLER, kPicIcoPictureWidgetEHImpl,
			/** 
			Flag used to preserve the internal state (selected or otherwise)
			*/
			IID_IBOOLEANCONTROLDATA,kCBooleanControlDataImpl,
			/** 
			This interface has state data consisting of two integers, one for the default
			state and one for the 'selected' or hilight state. Although it seems to be about fonts, it
			isn't specific to fonts and 
			it is appropriate here since we have two int32 resource IDs that we wish to maintain on
			a data interface. This saves us having to write a custom data interface or use two int-data
			interfaces with different IIDs. 
			*/
			IID_IUIFONTSPEC, kUIFontSpecImpl
			// I know they're not fonts.. but we need two integers to be read in... 
			// so it's a hack... but an efficient one.
		}
	},
	
	Class
	{
		kAMPCAlertDialogBoss,
		kDialogBoss,
		{
			IID_IOBSERVER, kAMPProgDlgObserverImpl,
		}
	},
	
	Class
	{
		kAMPFunctionProDialogBoss,
		kProgressBarDialogBoss,//kDialogBoss,
		{
			//IID_IOBSERVER, kAMPProgDlgObserverImpl,
		}
	},
	
	Class
	{
		kAMPAlrtCheckinDialogBoss,
		kDialogBoss,
		{
			IID_IOBSERVER, kAMPProgDlgObserverImpl,
		}
	},
	
	Class
	{
		kAMPProxyDialogBoss,
		kDialogBoss,
		{
			IID_IDIALOGCONTROLLER, kAMPProxyControllerImpl,
			
			IID_IOBSERVER, kAMPProxyObserverImpl,
		}
	},
	
	Class
	{
		kHidTxtModelCreateCmdBoss,
		kInvalidClass,
		{
			/** See ICommand and HidTxtModelCreateCmd.
				\li ItemList Input: UID at index 0 refers to the text model (ITextModel) the hidden
					text is to be embedded in.
				\li ItemList Output: UID at index 0 refers to the created kHidTxtModelBoss object.
				\li Notification Subject: Document (kDocBoss) that contains the hidden text.
				\li Notification Protocol: IHidTxtModel::kDefaultIID.
			*/			
			//IID_ICOMMAND, kHidTxtModelCreateCmdImpl,
			/** See IRangeData, implementation provided by the API.
				\li IN: gives the TextIndex on which the hidden text should be anchored.
			*/				
			IID_IRANGEDATA, kRangeDataImpl,
		}
	},
	
	
	
///###################################################################################################################
///////////////////////////// ADD FRAME LABEL ICON - NGUYEN MINH TOAN - 2012 - 12 - 18 //////////////////////////////
	/**
	Adds an interface to kWorkspaceBoss. 
	The inteface stores bool value for the frame label to be printed or not.
	@ingroup framelabel
	*/
	AddIn
	{
		kWorkspaceBoss,
		kInvalidClass,
		{
			IID_IFRMLBLPRINTBOOLDATA, kFrmLblPrintPrefsDataPersistImpl,
		}
	},

	/**
	Adds an interface to kWorkspaceBoss. 
	The inteface stores
	default data for the frame label adornment to display.
	@ingroup framelabel
	*/
	AddIn
	{
		kWorkspaceBoss,
		kInvalidClass,
		{
			/** Stores the data to be displayed in frame adornment.
				@see  FrmLblData
			*/
			IID_IFRMLBLDATA, kFrmLblDataImpl,
		}
	},		
	
	/**
	Adds an interface to kDocWorkspaceBoss. 
	The inteface stores
	default data for the frame label adornment to display.
	@ingroup framelabel
	*/
	AddIn
	{
		kDocWorkspaceBoss,
		kInvalidClass,
		{
			/** Stores the data to be displayed in frame adornment.
				@see  FrmLblData
			*/
			IID_IFRMLBLDATA, kFrmLblDataImpl,
		}
	},		
	
	/**
	Adds an interface to all drawable page items (add-in to kDrawablePageItemBoss). 
	The inteface stores
	data for the frame label adornment to display.
	@ingroup framelabel
	*/
	AddIn
	{
		kDrawablePageItemBoss,
		kInvalidClass,
		{
			/** Stores the data to be displayed in frame adornment.
				@see  FrmLblData
			*/
			IID_IFRMLBLDATA, kFrmLblDataImpl,
		}
	},

	/** Puts facade onto the Utils boss to let client code use it. 
		@ingroup framelabel
	*/
    AddIn
    {
        kUtilsBoss,
        kInvalidClass,
        {
            IID_FRMLBLDATAFACADE, kFrmLblDataFacadeImpl,           
        }
    },
    
    
	
	/** Handles scripting of FrameLabel's properties.
        Added at InDesign CS2 to support scripting.
        @ingroup framelabel
	 */
	Class
	{
		kFrmLblScriptProviderBoss,
		kBaseScriptProviderBoss,
		{
			IID_ISCRIPTPROVIDER,kFrmLblScriptProviderImpl,
			
		}
	},
	
	/** Handles scripting of FrameLabel's default setting and 
		printing preference.
        @ingroup framelabel
	 */
	Class
	{
		kFrmLblPrefsScriptProviderBoss,
		kBaseScriptProviderBoss,
		{
			IID_ISCRIPTPROVIDER,kFrmLblPrefsScriptProviderImpl,
			
		}
	},
	
	/**
	Adornment implementation for drawable page items.
		@ingroup framelabel
	*/
	Class
	{
		kFrmLblAdornmentBoss,
		kInvalidClass,
		{
			/** Provides drawing, etc. 
			*/
			IID_IADORNMENTSHAPE, kFrmLblAdornmentImpl,
		}
	},
		
	/** A command to control the appearance of the adornment
		@ingroup framelabel
	*/
	Class
	{
		kFrmLblCmdBoss,
		kInvalidClass,
		{
			/** Manipulates a frame label data interface. 
				@see FrmLblCmd
			*/
			IID_ICOMMAND, kFrmLblCmdImpl,
			/** Stores setting for use by the command
				@see FrmLblData
			*/
			IID_IFRMLBLDATA, kFrmLblDataImpl,
		}
	},

	/** Adds our custom suite interface to the integrator boss class kIntegratorSuiteBoss.
		@ingroup framelabel
	*/
	AddIn
	{
		kIntegratorSuiteBoss,
		kInvalidClass,
		{
			IID_IFRMLBLDATASUITE,kFrmLblDataSuiteASBImpl,
			
		}
	},
	
	/** Adds our custom suite interface to kTextSuiteBoss
		@ingroup framelabel
	*/
	AddIn
	{
		kTextSuiteBoss,
		kInvalidClass,
		{
			IID_IFRMLBLDATASUITE,kFrmLblDataSuiteTextCSBImpl,
			
		}
	},
		
	/** Adds our custom suite interface to klayoutSuiteBoss
		@ingroup framelabel
	*/
	AddIn
	{
		kLayoutSuiteBoss,
		kInvalidClass,
		{
			IID_IFRMLBLDATASUITE,kFrmLblDataSuiteLayoutCSBImpl,
			
		}
	},
	
	/** Adds our custom suite interface to kTableSuiteBoss
		@ingroup framelabel
	*/
	AddIn
	{
		kTableSuiteBoss,
		kInvalidClass,
		{
			IID_IFRMLBLDATASUITE, kFrmLblDataSuiteTableCSBImpl,
		}
	},
	
	/** Adds our custom suite interface to kDocumentDefaultSuiteBoss
		@ingroup framelabel
	*/
	AddIn
	{
		kDocumentDefaultSuiteBoss,
		kInvalidClass,
		{
			IID_IFRMLBLDATASUITE,kFrmLblDataSuiteDefaultsCSBImpl,
			
		}
	},
		
	/** Adds our custom suite interface to kApplicationDefaultSuiteBosss
		@ingroup framelabel
	*/
	AddIn
	{
		kApplicationDefaultSuiteBoss,
		kInvalidClass,
		{
			IID_IFRMLBLDATASUITE, kFrmLblDataSuiteDefaultsCSBImpl,
			
		}
	},
		
	/** Command boss class to change printing preference .
	*/
	Class
	{
        kFrmLblPrintPrefsCmdBoss,
        kInvalidClass,
        {
            /** Implementation of ICommand
                @see kFrmLblPrintPrefsCmdImpl
            */
            IID_ICOMMAND,    kFrmLblPrintPrefsCmdImpl,
            IID_IFRMLBLPRINTBOOLDATA, kFrmLblPrintPrefsDataPersistImpl,

        }
	},

	/** This boss class supplies a schema-based conversion service for this plug-in.
		@ingroup framelabel
	*/
	Class
    {
        kFrmLblConversionProviderBoss,
        kInvalidClass,
        {
			/** Provides the conversion service.
				Implementation provided by the API.
			*/
            IID_ICONVERSIONPROVIDER, kSchemaBasedConversionImpl,
			/** Registers this boss as a conversion service provider.
				Implementation provided by the API.
			*/
            IID_IK2SERVICEPROVIDER, kConversionServiceImpl,
        }
    },

	/** Set document default frame label setting when the document is created.
		@ingroup framelabel
	 */
    Class
    {
		kFrmLblNewDocResponderBoss,
        kInvalidClass,
        {
			/** See IResponder and FrmLblResponder.
			 */
            IID_IRESPONDER, kFrmLblResponderImpl,

			/** Implementation provided by API.
			 */
            IID_IK2SERVICEPROVIDER, kAfterNewDocSignalRespServiceImpl,
        }
    },
	
	/** Created frame label adornment based on default IFrmLblData when
		the page item is created.
		@ingroup framelabel
	 */
    Class
    {
		kFrmLblNewPIResponderBoss,
        kInvalidClass,
        {
			/** See IResponder and FrmLblResponder.
			 */
            IID_IRESPONDER, kFrmLblResponderImpl,

			/** Implementation provided by API.
			 */
            IID_IK2SERVICEPROVIDER, kAddPageItemAdornmentCmdImpl,
        }
    },
	
	/** This boss class supplies an error string service for this plug-in.
		@ingroup framelabel
	*/
    Class
    {
        kFrmLblErrorStringServiceBoss,
        kInvalidClass,
        {
			/** Registers this boss as an error string service provider.
				Implementation provided by the API.
			*/
            IID_IK2SERVICEPROVIDER, kErrorStringProviderImpl,
			/** See IErrorStringService / FrmLblErrorStringService.
			 */
            IID_IERRORSTRINGSERVICE, kFrmLblErrorStringServiceImpl,
        }
    };

	/** 
	 */
    Class
    {
		kFrmLblActionPIResponderBoss,
        kInvalidClass,
        {
			/** See IResponder and FrmLblResponder.
			 */
            IID_IRESPONDER, kFrmLblResponderImpl,

			/** Implementation provided by API.
			 */
            IID_IK2SERVICEPROVIDER, kNewPISignalRespServiceImpl,
        }
    },
///###################################################################################################################

	/////////////////////////////////////////TOAN NGUYEN ADDED DATE:23-01-2013////////////////////////////////////////
	/** Caches the identities of links that have been added to the document since it
		was opened.
		@ingroup linkwatcher
	 */
	AddIn
	{
		kDocBoss,
		kInvalidClass,
		{
			/** See LnkWtchCacheManager.
			 */
			IID_ILNKWTCHCACHEMANAGER, kLnkWtchCacheManagerImpl,
			
			/** See LnkWtchCache. 
			*/
			IID_ILNKWTCHCACHE, kLnkWtchCacheImpl,
		}
	},
	/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
}}};

/*  Implementation definition.
*/
resource FactoryList (kSDKDefFactoryListResourceID)
{
	kImplementationIDSpace,
	{
		#include "AMPFactoryList.h"
	}
};

// added to support the list elements in the list box
resource LocaleIndex (kAMPluginListElementRsrcID)
{
	kViewRsrcType,
	{
		kWildFS, k_Wild, kAMPluginListElementRsrcID + index_enUS
	}
};

resource LocaleIndex (kBscSlDlgIssuesDialogResourceID)	//<--20120423
{
   kViewRsrcType,
	{
		kWildFS,	k_Wild, kBscSlDlgIssuesDialogResourceID	//<--20120423
	}
};

resource LocaleIndex (kPnlTrvNodeWidgetRsrcID)			//<--20120505
{
	kViewRsrcType,
	{
		kWildFS, k_Wild, kPnlTrvNodeWidgetRsrcID + index_enUS	//<--20120505
	}
}

/*
// Dialog LocaleIndex. 
*/
resource LocaleIndex (kAMPProgressDlgResourceID)
{
   kViewRsrcType,
	{
		kWildFS,	k_Wild, kAMPProgressDlgResourceID + index_enUS
	}
};
resource LocaleIndex (kAMPProxyDlgResourceID)
{
   kViewRsrcType,
	{
		kWildFS,	k_Wild, kAMPProxyDlgResourceID + index_enUS
	}
};
resource LocaleIndex (kAMPALrtCheckInDlgResourceID)
{
   kViewRsrcType,
	{
		kWildFS,	k_Wild, kAMPALrtCheckInDlgResourceID + index_enUS
	}
};
resource LocaleIndex (kAMPAFunctionProDlgResourceID)
{
   kViewRsrcType,
	{
		kWildFS,	k_Wild, kAMPAFunctionProDlgResourceID + index_enUS
	}
};
//================================================================================
// Menu definition.
//================================================================================
resource MenuDef (kSDKDefMenuResourceID)
{
	{
		// Separator for the popup menu on the panel
		kAMPluginSeparator1ActionID,
		kAMPluginInternalPopupMenuNameKey kSDKDefDelimiterAndSeparatorPath,	// :- to mark an item as a separator.
		kAMPluginSeparator1MenuItemPosition,
		kSDKDefIsNotDynamicMenuFlag,

		//<--20120810: Toan added here to right mouse click

		kXMLMrkCompoundSectionActionID,
		kXMLMrkTargetMenuPath,
		kXMLMrkCompoundSectionMenuItemPosition,
		kSDKDefIsNotDynamicMenuFlag,

		// The About Plug-ins sub-menu item for this plug-in.
		kAMPAboutActionID,			// ActionID (kInvalidActionID for positional entries)
		kAMPAboutMenuPath,			// Menu Path.
		kAMPAboutThisMenuItemPosition,		// Menu Position.
		kSDKDefIsNotDynamicMenuFlag,	// kSDKDefIsNotDynamicMenuFlag or kSDKDefIsDynamicMenuFlag.

		
		/*
		kXMLMrkCompoundTableActionID,
		kXMLMrkTargetMenuPath,
		kXMLMrkCompoundTableMenuItemPosition,
		kSDKDefIsNotDynamicMenuFlag,

		kXMLMrkCompoundItemizedListActionID,
		kXMLMrkTargetMenuPath,
		kXMLMrkCompoundItemizedListMenuItemPosition,
		kSDKDefIsNotDynamicMenuFlag,

		kXMLMrkCompoundMediaObjectActionID,
		kXMLMrkTargetMenuPath,
		kXMLMrkCompoundMediaObjectMenuItemPosition,
		kSDKDefIsNotDynamicMenuFlag,

		kXMLMrkCompoundKeywordSetActionID,
		kXMLMrkTargetMenuPath,
		kXMLMrkCompoundKeywordSetMenuItemPosition,
		kSDKDefIsNotDynamicMenuFlag,
		*/
		//-->
		
		/*
		// The About Plug-ins sub-menu item for this plug-in.
		kAMPAboutActionID,			// ActionID (kInvalidActionID for positional entries)
		kAMPAboutMenuPath,			// Menu Path.
		kSDKDefAlphabeticPosition,			// Menu Position.
		kSDKDefIsNotDynamicMenuFlag,		// kSDKDefIsNotDynamicMenuFlag or kSDKDefIsDynamicMenuFlag.
		
		// About this plugin submenu for the popup menu on the panel
		kAMPRunPopupAboutThisActionID,
		kAMPluginTargetMenuPath
		kAMPRunAboutThisMenuItemPosition,
		kSDKDefIsNotDynamicMenuFlag, 
		*/
	}
};


//================================================================================
// Action definition.
//================================================================================
resource ActionDef (kSDKDefActionResourceID)
{
	{ 
		kAMPActionComponentBoss,
		kCMSLoginDialogActionID,					//<--20120420	
		kBscDlgDialogMenuItemKey,					//<--20120420		
		kOtherActionArea,			
		kNormalAction,				
		kDisableIfLowMem,	
		kInvalidInterfaceID,		
		kSDKDefInvisibleInKBSCEditorFlag,
		
		//<--20120810: Toan added here to right mouse click
		kXMLMrkActionComponentBoss,
		kXMLMrkCompoundSectionActionID,		
		kXMLMrkCompoundSectionMenuItemKey,		
		kOtherActionArea,			
		kNormalAction,				
		kDisableIfSelectionDoesNotSupportIID,	
		IID_IXMLMrkSUITE,
		kSDKDefInvisibleInKBSCEditorFlag,
	
		// about
		kAMPActionComponentBoss,			// ClassID of boss class that implements the ActionID.
		kAMPAboutActionID,					// ActionID.
		kSDKDefAboutThisPlugInMenuKey,		// Sub-menu string.
		kOtherActionArea,					// Area name (see ActionDefs.h).
		kNormalAction,						// Type of action (see ActionDefs.h).
		kDisableIfLowMem,					// Enabling type (see ActionDefs.h).
		kInvalidInterfaceID,				// Selection InterfaceID this action cares about or kInvalidInterfaceID.
		kSDKDefInvisibleInKBSCEditorFlag,	// kSDKDefVisibleInKBSCEditorFlag or kSDKDefInvisibleInKBSCEditorFlag.	
		// Action def for about/help panel popup menu entry
		
		/*			
		kXMLMrkActionComponentBoss, 
		kXMLMrkCompoundTableActionID, 
		kXMLMrkCompoundTableMenuItemKey,
		kOtherActionArea,
		kNormalAction,
		kDisableIfSelectionDoesNotSupportIID,	
		IID_IXMLMrkSUITE,
		kSDKDefInvisibleInKBSCEditorFlag,

		kXMLMrkActionComponentBoss,
		kXMLMrkCompoundItemizedListActionID,		
		kXMLMrkCompoundItemizedListMenuItemKey,		
		kOtherActionArea,			
		kNormalAction,				
		kDisableIfSelectionDoesNotSupportIID,	
		IID_IXMLMrkSUITE,
		kSDKDefInvisibleInKBSCEditorFlag,
				
		kXMLMrkActionComponentBoss, 
		kXMLMrkCompoundMediaObjectActionID, 
		kXMLMrkCompoundMediaObjectMenuItemKey,
		kOtherActionArea,
		kNormalAction,
		kDisableIfSelectionDoesNotSupportIID,	
		IID_IXMLMrkSUITE,
		kSDKDefInvisibleInKBSCEditorFlag,

		kXMLMrkActionComponentBoss,
		kXMLMrkCompoundKeywordSetActionID,		
		kXMLMrkCompoundKeywordSetMenuItemKey,		
		kOtherActionArea,			
		kNormalAction,				
		kDisableIfSelectionDoesNotSupportIID,	
		IID_IXMLMrkSUITE,
		kSDKDefInvisibleInKBSCEditorFlag,
		*/
		//-->
		
		// about
		/*
		kAMPActionComponentBoss, 		// ClassID of boss class that implements the ActionID.
		kAMPAboutActionID,	// ActionID.
		kAMPAboutMenuKey,	// Sub-menu string.
		kHelpMenuActionArea,				// Area name (see ActionDefs.h).
		kNormalAction,					// Type of action (see ActionDefs.h).
		kDisableIfLowMem,				// Enabling type (see ActionDefs.h).
		kInvalidInterfaceID,			// Selection InterfaceID this action cares about or kInvalidInterfaceID.
		kSDKDefInvisibleInKBSCEditorFlag, // kSDKDefVisibleInKBSCEditorFlag or kSDKDefInvisibleInKBSCEditorFlag.

		kAMPActionComponentBoss, 
		kAMPRunPopupAboutThisActionID, 
		kSDKDefAboutThisPlugInMenuKey,	// Key to the name of this action
		kOtherActionArea,
		kNormalAction,
		kDisableIfLowMem,	
		kInvalidInterfaceID,
		kSDKDefInvisibleInKBSCEditorFlag,
		*/
	}
};

/*  LocaleIndex
	The LocaleIndex should have indicies that point at your
	localizations for each language system that you are localized for.
*/
/*  String LocaleIndex.
*/
resource LocaleIndex ( kSDKDefStringsResourceID)
{
	kStringTableRsrcType,
	{
		kWildFS, k_enUS, kSDKDefStringsResourceID + index_enUS
		kWildFS, k_enGB, kSDKDefStringsResourceID + index_enUS
		kWildFS, k_deDE, kSDKDefStringsResourceID + index_enUS
		kWildFS, k_frFR, kSDKDefStringsResourceID + index_enUS
		kWildFS, k_esES, kSDKDefStringsResourceID + index_enUS
		kWildFS, k_ptBR, kSDKDefStringsResourceID + index_enUS
		kWildFS, k_svSE, kSDKDefStringsResourceID + index_enUS
		kWildFS, k_daDK, kSDKDefStringsResourceID + index_enUS
		kWildFS, k_nlNL, kSDKDefStringsResourceID + index_enUS
		kWildFS, k_itIT, kSDKDefStringsResourceID + index_enUS
		kWildFS, k_nbNO, kSDKDefStringsResourceID + index_enUS
		kWildFS, k_fiFI, kSDKDefStringsResourceID + index_enUS
		kInDesignJapaneseFS, k_jaJP, kSDKDefStringsResourceID + index_jaJP
	}
};

resource LocaleIndex (kSDKDefStringsNoTransResourceID)
{
	kStringTableRsrcType,
	{
		kWildFS, k_Wild, kSDKDefStringsNoTransResourceID + index_enUS
	}
};

/*
// Dialog CMSLogin LocaleIndex.
*/
resource LocaleIndex (kCMSLoginDialogResourceID)		//<--20120420
{
   kViewRsrcType,
	{
		kWildFS,	k_Wild, kCMSLoginDialogResourceID + index_enUS		//<--20120420
	}
};

resource LocaleIndex (kImgAssignmentDlgRsrcID)				//<--20120913
{
	kViewRsrcType,
	{
		kWildFS, k_Wild, kImgAssignmentDlgRsrcID + index_enUS	//<--20120913
	}
}

resource LocaleIndex (kStoryNodeWidgetRsrcID)			//<--20120505
{
	kViewRsrcType,
	{
		kWildFS, k_Wild, kStoryNodeWidgetRsrcID + index_enUS	//<--20120505
	}
}


//------------------------------------------------------------
// Panel LocaleIndex.
//------------------------------------------------------------
resource LocaleIndex (kSDKDefPanelResourceID)
{
	kViewRsrcType,
	{
		kWildFS, k_Wild, 	kSDKDefPanelResourceID + index_enUS
	}
};

resource StringTable (kSDKDefStringsNoTransResourceID + index_enUS)
{
	k_enUS,									// Locale Id
	kEuropeanMacToWinEncodingConverter,		// Character encoding converter
	{
		// No-Translate strings go here:		


		kAMPluginInternalPopupMenuNameKey,	kAMPluginInternalPopupMenuNameKey,		// No need to translate, internal menu name.
	}
};


//================================================================================
// PanelList definition.
//================================================================================
resource PanelList (kSDKDefPanelResourceID)
{
	{
		// 1st panel in the list
		kSDKDefPanelResourceID,		// Resource ID for this panel (use SDK default rsrc ID)
		kAMPPluginID,			// ID of plug-in that owns this panel
		kNotResizable,
		kAMPluginPanelWidgetActionID,	// Action ID to show/hide the panel
		kAMPluginPanelTitleKey,		// Shows up in the Window list.
		"",							// Alternate menu path of the form "Main:Foo" if you want your palette menu item in a second place
		0.0,						// Alternate Menu position Alternate Menu position for determining menu order
		0,0,						// Rsrc ID, Plugin ID for a PNG icon resource to use for this palette
		c_Panel
	}	
};

//========================================================================================
// Type definition.
//========================================================================================
type AMPluginPanelWidget(kViewRsrcType) : PalettePanelWidget(ClassID = kAMPluginPanelWidgetBoss) 
{
	CPanelMenuData;
	//CControlViewObservers;
};

type AMPluginListBox(kViewRsrcType) : TreeViewWidget	(ClassID = kAMPluginListBoxWidgetBoss) 
{
	CControlViewObservers;
};


type AMPNodeWidget(kViewRsrcType) : PrimaryResourcePanelWidget(ClassID = kTreeNodeWidgetBoss) {};
type AMPTextWidget		(kViewRsrcType) : InfoStaticTextWidget	(ClassID = kAMPluginTextWidgetBoss) { };
type DlgCMSLoginDialogBoss(kViewRsrcType) : DialogBoss(ClassID = kCMSLoginDlgDialogBoss) { };			//<--20120420

type AMPPluginIssuesDialogWidget(kViewRsrcType) : DialogBoss(ClassID = kAMPluginIssuesDialogBoss) { };			//<--20120505
type AMPIssuesTreeViewWidget(kViewRsrcType) : TreeViewWidget(ClassID = kAMPIssuesTreeViewWidgetBoss) {};		//<--20120505
type AMPIssuesNodeWidget(kViewRsrcType) : PrimaryResourcePanelWidget(ClassID = kAMPIssuesNodeWidgetBoss) {};	//<--20120505
type AMPCViewPanelWidget(kViewRsrcType) : GenericPanelWidget(ClassID = kAMPCViewPanelWidgetBoss){};	//<--20120529 : View Image

type AMPNextButton	(kViewRsrcType) : RollOverIconButtonWidget 	(ClassID = kNextButtonBoss) 
{ 
	CControlViewObservers;
};

type AMPPreviousButton	(kViewRsrcType) : RollOverIconButtonWidget		(ClassID = kPreviousButtonBoss) 
{ 
	CControlViewObservers;
};

type AMPImgAssignmentDialogWidget(kViewRsrcType) : DialogBoss(ClassID = kAMPImgAssignmentDialogBoss) {};	//<--20120913

type AMPStoryTreeViewWidget(kViewRsrcType) : TreeViewWidget(ClassID = kAMPStoryTreeViewWidgetBoss) {
	CControlViewObservers;
};
type AMPStoryNodeWidget(kViewRsrcType) : PrimaryResourcePanelWidget(ClassID = kTreeNodeWidgetBoss) {};

type PicIcoPictureWidget(kViewRsrcType) : IconSuiteWidget(ClassID = kAMPPicIcoPictureWidgetBoss) 
{
	UIFontSpec; // because we want to read in two integers for the default and hilite states.
};
type AMPluginCheckboxWidget(kViewRsrcType) : CheckBoxWidget(ClassID = kAMPluginCheckboxWidgetBoss) {};
type AMPStaticTextWidget		(kViewRsrcType) : InfoStaticTextWidget	(ClassID = kAMPluginStaticTextWidgetBoss) { };
type AMPluginTreeExpanderWidget (kViewRsrcType) : TreeExpanderWidget (ClassID = kAMPluginTreeExpanderBoss) { };

type AMPCAlertDialogBoss(kViewRsrcType) : DialogBoss(ClassID = kAMPCAlertDialogBoss)
{
};

type AMPProxyDialogBoss(kViewRsrcType) : DialogBoss(ClassID = kAMPProxyDialogBoss)
{
};

type AMPAlrtCheckinDialogBoss(kViewRsrcType) : DialogBoss(ClassID = kAMPAlrtCheckinDialogBoss)
{
};

type AMPFunctionProDialogBoss(kViewRsrcType) : DialogBoss(ClassID = kAMPFunctionProDialogBoss)
{
};

resource PNGA(kPicIcoTopOutsidePictureRsrcID) "logo.png"	//<--20120420
resource PNGA(kNextButtonResourceID) "next.png"
resource PNGR(kNextButtonRollResourceID) "next-hover.png"
resource PNGA(kPrevButtonResourceID) "prev.png"
resource PNGR(kPrevButtonRollResourceID) "prev-hover.png"
resource PNGA(kAMPCheckboxOffRsrcID) "off.png"
resource PNGA(kAMPCheckboxOnRsrcID) "on.png"
resource PNGA(kCheckIconResourceID) "story-check.png"
resource PNGA(kAMPDefaultPreviewImage) "audiencemedia_preview.jpg"
resource PNGA(kAMPPluginUnPulishedResourceID) "warning.png"
resource PNGA(kAMPPluginLockedResourceID) "lock.png"
resource PNGA(kAMPPluginReadyResourceID)  "Ready.png"
resource PNGA(kAMPPluginEditedResourceID) "editing.png"
resource PNGA(kAMPPluginUpdateResourceID) "update.png"
resource PNGA(kAMPUnPublishedResourceID) 		"AMB_Warning_Sm_R.png"
resource PNGA(kAMPDownloadableResourceID)  		"AMB_Downloadable2_C_Sm_D.png"
resource PNGA(kAMPEditedLocallyResourceID) 		"AMB_EditedLocally_C_Sm_D.png"
resource PNGA(kAMPEditElsewhereResourceID) 		"AMB_EditElsewhere_C_Sm_D.png"
resource PNGA(kAMPCheckedOutResourceID) 		"AMB_CheckedOut_Sm_N.png"










resource AMPluginPanelWidget (kSDKDefPanelResourceID + index_enUS) 
{ 
	__FILE__, 
	__LINE__, // Localization macro
	kAMPluginPanelWidgetID, // WidgetID
	kPMRsrcID_None, // RsrcID
	kBindNone, // Binding (0=none)
	Frame(0,0,207,95) // Frame: left, top, right, bottom.
	kTrue, 
	kTrue, // Visible, Enabled
	kFalse, // Erase background
	kInterfacePaletteFill, // Erase to color
	kTrue, // Draw dropshadow // hien thi nen
	kAMPluginPanelTitleKey, // Panel name
	{
		AMPluginListBox //Tree view
		( 
			kAMPluginListBoxWidgetID, 
			kPMRsrcID_None, // WidgetId, RsrcId
			kBindAll, // Frame binding
			Frame(-1,0,208,96) // Frame
			//Frame(10,20,100,50) // Frame
			kTrue, 
			kTrue, // Visible, Enabled
			kTrue, // EraseBeforeDraw
			kInterfacePaletteFill, // InterfaceColor
			"", 
			kHideRootNode, // | kDrawEndLine, // Options. Display root node
			kFalse, // Use H Scroll bar
			kFalse, // Use V scroll bar
			30, // fVScrollButtonIncrement
			30, // fVThumbScrollIncrement
			30, // fHScrollButtonIncrement
			30, // fHThumbScrollIncrement
			1, // Items selectable, 0 = No Selection, 1 = Single Selection, 2 = Multiple Selection
			kFalse, // Allow children from multiple parents to be selected
			kFalse, // Allow discontiguous selection
			{
			//The tree view is dynamically created.
			}
			{
				// CControlViewObservers - the listbox's observers.
				{
					IID_IOBSERVER,
					//IID_SELECTIONOBSERVER,
				}
			},  
		),
	}
	kAMPluginInternalPopupMenuNameKey,  // Popup menu name (internal)
};




























resource AMPNodeWidget (kAMPluginListElementRsrcID + index_enUS) 
{ 
	__FILE__, 
	__LINE__, 
	kAMPluginListParentWidgetId, 
	kPMRsrcID_None, // WidgetId, RsrcId
	kBindLeft | kBindRight, // Frame binding
	Frame(0,0,194,20) // Frame
	//Frame(0,0,50,20) // Frame
	kTrue, 
	kTrue, // Visible, Enabled
	"", // Panel name
	{
		/*
		WLBCmpEyeballWidget 
		( 
			kWLBCmpListElementEyeballWidgetID, 
			kWLBCmpEyeBallIcon, 
			kWLBCmpPluginID, // WidgetId, RsrcId
			kBindLeft, // Frame binding
			Frame(3,1,22,18) // Frame
			kTrue, 
			kTrue, // Visible, Enabled
			kADBEIconSuiteButtonType,
		),
		WLBCmpPenWidget 
		( 
			kWLBCmpListElementPenWidgetID, 
			kWLBCmpPenIcon, 
			kWLBCmpPluginID, // WidgetId, RsrcId
			kBindLeft, // Frame binding
			Frame(25,1,44,18) // Frame
			kTrue, 
			kTrue, // Visible, Enabled
			kADBEIconSuiteButtonType,
		),
	*/
		// Just a info-static text widget with about-box text view to get white bg.
		AMPTextWidget 
		( 
			kAMPluginTextWidgetID, 
			kPMRsrcID_None, // WidgetId, RsrcId
			kBindLeft | kBindRight, // Frame binding
			Frame(45,1,194,18) // Frame
			//Frame(0,1,300,18)									// Frame
			kTrue, 
			kTrue, 
			kAlignLeft, 
			kEllipsizeEnd, 
			kTrue, // Visible, Enabled, ellipsize style, convert ampersands
			"Sign In", // Initial text
			0, // Associated widget for focus
			kPaletteWindowSystemScriptFontId, // default font
			kPaletteWindowSystemScriptHiliteFontId,  // for highlight state.
		),
	} 
};




























resource DlgCMSLoginDialogBoss (kCMSLoginDialogResourceID + index_enUS) //<--20120420
{ 
	__FILE__, 
	__LINE__, 
	kBscDlgDialogWidgetID, // WidgetID
	kPMRsrcID_None, // RsrcID
	kBindNone, // Binding
	//Frame(0,0,381,191) // Frame (l,t,r,b)
	Frame(0,0,521,186) //Frame(0,0,450,191) // Frame (l,t,r,b) Frame(0,0,390,191)
	kTrue, 
	kTrue, // Visible, Enabled
	kBscDlgDialogTitleKey, // Dialog name
	{
		ButtonWidget 
		( 
			kOKButtonWidgetID, //kOKButtonWidgetID or kBscDlgLoginButtonWidgetID, // The Identifier for this Widget	//<--20120420
			kSysButtonPMRsrcId, // The Plugin ID
			kBindNone, // Frame binding
			//Frame(284,124,364,144)
			Frame(429,124,510,144) //Frame(290,124,364,144)
			kTrue, // Is this visible
			kTrue, // Is this enabled
			"Sign in",  // The String value
		),
		CancelButtonWidget 
		( 
			kCancelButton_WidgetID, // WidgetID
			kSysButtonPMRsrcId, // RsrcID
			kBindNone, // Binding
			//Frame(284,154,364,174) // Frame (l,t,r,b)
			Frame(429,154,510,174) // Frame (l,t,r,b) Frame(290,154,364,174)
			kTrue, 
			kTrue, // Visible, Enabled
			kSDKDefCancelButtonApplicationKey, // Button name
			kTrue,  // Change to Reset on option-click.
		),
		/*
		DropDownListWidget 
		( 
			kClientIDListWidgetID,			//<--20120510
			kSysDropDownPMRsrcId, // WidgetId, RsrcId
			kBindNone, // Frame binding
			//Frame(84,94,275,114) // Frame (l,t,r,b) (84,124,275,144)
			Frame(90,94,335,114) // Frame (l,t,r,b) Frame(90,94,275,114)
			kTrue, 
			kTrue, // Visible, Enabled
			{
				{	// List Items
					kClientIDLoginItem_1Key,
					kClientIDLoginItem_2Key,
					kClientIDLoginItem_3Key,
					kClientIDLoginItem_4Key,
					kClientIDLoginItem_5Key,
				}
			},
		),*/
		TextEditBoxWidget 
		( 
			kClientIDListWidgetID, // The Identifier for this Widget		//<--20120420
			kSysEditBoxPMRsrcId, // The Plugin ID
			kBindNone, // Frame binding
			//Frame(84,94,275,114)
			Frame(90,94,424,114) //Frame(90,94,275,114)
			kTrue, // Is this visible
			kTrue, // Is this enabled
			0, // The WidgetID for the nudge button
			0, // A small nudge amount
			0, // A large nudge amount
			0, // The maximum number of characters
			kFalse, // integer readOnly value
			kFalse, // Notify on key stroke
			kFalse, // Enable range checking
			kFalse, // Allow blank entry
			0, // The upper limit
			0, // The lower limit
			"",  // The String value
		),
		TextEditBoxWidget 
		( 
			kBscUserNameWidgetID, // The Identifier for this Widget		//<--20120420
			kSysEditBoxPMRsrcId, // The Plugin ID
			kBindNone, // Frame binding
			//Frame(84,124,275,144)
			Frame(90,124,425,144) //Frame(90,124,275,144)
			kTrue, // Is this visible
			kTrue, // Is this enabled
			0, // The WidgetID for the nudge button
			0, // A small nudge amount
			0, // A large nudge amount
			0, // The maximum number of characters
			kFalse, // integer readOnly value
			kFalse, // Notify on key stroke
			kFalse, // Enable range checking
			kFalse, // Allow blank entry
			0, // The upper limit
			0, // The lower limit
			"",  // The String value
		),
		PasswordEditBoxWidget 
		( 
			kBscPasswordWidgetID, // The Identifier for this Widget			//<--20120420
			kSysEditBoxPMRsrcId, // The Plugin ID
			kBindNone, // Frame binding
			//Frame(84,154,275,174)
			Frame(90,154,425,174) //Frame(90,154,275,174)
			kTrue, // Is this visible
			kTrue, // Is this enabled
			0, // The WidgetID for the nudge button
			0, // A small nudge amount
			0, // A large nudge amount
			0, // The maximum number of characters
			kFalse, // integer readOnly value
			kFalse, // Notify on key stroke
			kFalse, // Enable range checking
			kFalse, // Allow blank entry
			0, // The upper limit
			0, // The lower limit
			"",  // The String value
		),
		StaticTextWidget 
		( 
			kBscstatictextWidgetID, // WidgetId						//<--20120420
			kSysStaticTextPMRsrcId, // RsrcId
			kBindNone, // Frame binding
			//Frame(19,94,80,114) ,	// Frame (l,t,r,b) (84,124,275,144)
			Frame(19,94,85,114) // Frame (l,t,r,b) (84,124,275,144)
			kTrue, 
			kTrue, 
			kAlignLeft, // Visible, Enabled, Alignment
			kDontEllipsize, 
			kTrue, //**new element in InDesign 2.0: don't add any ellipses
			kBscStaticTextClientIDKey, // Text						//<--20120510
			kBscTextEditBoxWidgetID,  // WidgetId for associated control for shortcut focus
		),
		StaticTextWidget 
		( 
			kBscstatictextWidgetID, // WidgetId						//<--20120420
			kSysStaticTextPMRsrcId, // RsrcId
			kBindNone, // Frame binding
			//Frame(19,124,80,144) ,	// Frame (l,t,r,b) (84,124,275,144)
			Frame(19,124,85,144) // Frame (l,t,r,b) (84,124,275,144)
			kTrue, 
			kTrue, 
			kAlignLeft, // Visible, Enabled, Alignment
			kDontEllipsize, 
			kTrue, //**new element in InDesign 2.0: don't add any ellipses
			kBscStaticTextUsernameKey, // Text
			kBscTextEditBoxWidgetID,  // WidgetId for associated control for shortcut focus
		),
		StaticTextWidget 
		( 
			kBscstatictextWidgetID, // WidgetId
			kSysStaticTextPMRsrcId, // RsrcId
			kBindNone, // Frame binding
			//Frame(19,154,80,174) ,	// Frame (l,t,r,b) Frame(84,154,275,174)
			Frame(19,154,85,174) // Frame (l,t,r,b) Frame(84,154,275,174)
			kTrue, 
			kTrue, 
			kAlignLeft, // Visible, Enabled, Alignment
			kDontEllipsize, 
			kTrue, //**new element in InDesign 2.0: don't add any ellipses
			kBscStaticTextPasswordKey, // Text
			kBscTextEditBoxWidgetID,  // WidgetId for associated control for shortcut focus
		),
		IconSuiteWidget 
		( 
			kPicIcoPictureWidgetId, // The Identifier for this Widget
			kPicIcoTopOutsidePictureRsrcID, // The Resource ID
			kAMPPluginID, // The Plugin ID
			kBindNone, // Frame binding
			Frame(139,4,378,79) //Frame(79,-1,295,75)
			kTrue, // Is this visible
			kTrue, // Is this enabled
			kStyledIconSuiteFlushedButtonType, // Raised/Lowered fStyles
			0,  // The Widget ID for associated control for shortcut focus
		),
		ButtonWidget 
		( 
			kAMPButtonAdvanceWidgetId, // The Identifier for this Widget
			kSysButtonPMRsrcId, // The Resource ID
			kBindNone, // Frame binding
			Frame(429,94,509,114) 
			kTrue, // Is this visible
			kTrue, // Is this enabled
			"Settings",  // The String value
		),
	/*		
		// Toan add here, port setting
		StaticTextWidget
		(
			kBscstatictextWidgetID,		// WidgetId		
			kSysStaticTextPMRsrcId,		// RsrcId
			kBindNone,			// Frame binding
			Frame(19,184,84,204)	// Frame (left, top, right, bottom)
			kTrue, kTrue, kAlignLeft,	// Visible, Enabled, Alignment
			kDontEllipsize, kTrue,			//**new element in InDesign 2.0: don't add any ellipses
			"Proxy",		// Text
			0,		// WidgetId for associated control for shortcut focus
		),
				
		ClusterPanelWidget 
		( 
			kAMPClusterProxyWidgetID, // The Identifier for this Widget
			kPMRsrcID_None, // The Plugin ID
			kBindNone, // Frame binding
			Frame(89,184,425,205)//Frame(269,444,585,470) 
			kTrue, // Is this visible
			kTrue, // Is this enabled
			"Proxy", 
			{
				RadioButtonWidget 
				( 
					kAMPRadioAutoWidgetID, // The Identifier for this Widget
					kSysRadioButtonPMRsrcId, // The Plugin ID
					kBindNone, // Frame binding
					Frame(1,0,79,19) // Frame (left, top, right, bottom)
					kTrue, // Is this visible
					kTrue, // Is this enabled
					"Auto",  // The String value
				),
				RadioButtonWidget 
				( 
					kAMPRadioManualWidgetID, // The Identifier for this Widget
					kSysRadioButtonPMRsrcId, // The Plugin ID
					kBindNone, // Frame binding
					Frame(80,0,159,19)  // Frame (left, top, right, bottom)
					kTrue, // Is this visible
					kTrue, // Is this enabled
					"Manual",  // The String value
				),
				TextEditBoxWidget 
				( 
					kAMPProxySettingWidgetID, // The Identifier for this Widget		//<--20120420
					kSysEditBoxPMRsrcId, // The Plugin ID
					kBindNone, // Frame binding
					Frame(160,0,250,19) //Frame(90,94,275,114)
					kTrue, // Is this visible
					kFalse, // Is this enabled
					0, // The WidgetID for the nudge button
					0, // A small nudge amount
					0, // A large nudge amount
					0, // The maximum number of characters
					kFalse, // integer readOnly value
					kFalse, // Notify on key stroke
					kFalse, // Enable range checking
					kFalse, // Allow blank entry
					0, // The upper limit
					0, // The lower limit
					"",  // The String value
				),
			} 
		),
*/
	//</FREDDYWIDGETDEFLISTUS>
	} 
}			//<--20120420

//<--20120505
resource AMPPluginIssuesDialogWidget (kBscSlDlgIssuesDialogResourceID) 
{ 
	__FILE__, 
	__LINE__, 
	kBscSlDlgIssuesDialogWidgetID, // WidgetID
	kPMRsrcID_None, // RsrcID
	kBindNone, // Binding
	Frame(0,0,811,506) // Frame (l,t,r,b)
	kTrue, 
	kTrue, // Visible, Enabled
	"Issue List", // Dialog name
	{
		ButtonWidget 
		( // The Identifier for this Widget
			kOKButtonWidgetID, 
			kSysButtonPMRsrcId, // The Plugin ID
			kBindNone, // Frame binding
			Frame(5,479,95,499) 
			kFalse, // Is this visible
			kFalse, // Is this enabled
			"",  // The String value
		),
		AMPIssuesTreeViewWidget //<--20120505
		( 
			kAMPIssuesTreeViewWidgetID, 
			kPMRsrcID_None, // WidgetId, RsrcId
			kBindAll, 
			Frame(4,4,265,465) // Frame
			//Frame(-4,4,240,380) // Frame
			kTrue, 
			kTrue, // Visible, Enabled
			kTrue, // EraseBeforeDraw
			kInterfacePaletteFill, // InterfaceColor
			"", 
			kFalse, // Display root node
			kFalse, // Use H Scroll bar
			kTrue, // Use V scroll bar
			20, // fVScrollButtonIncrement
			20, // fVThumbScrollIncrement
			20, // fHScrollButtonIncrement
			20, // fHThumbScrollIncrement
			1, // Items selectable, 0 = No Selection, 1 = Single Selection, 2 = Multiple Selection
			kFalse, // Allow children from multiple parents to be selected
			kFalse, // Allow discontiguous selection
			{
			} 
		),
		GroupPanelWidget 
		( 
			kAMPGroupViewPanelWidgetID, // The Identifier for this Widget
			kPMRsrcID_None, // The Plugin ID
			kBindNone, // Frame binding
			Frame(269,24,805,445) 
			kTrue, // Is this visible
			kTrue, // Is this enabled
			kAMPGroupViewPanelTabWidgetID, 
			{
				AMPCViewPanelWidget //<--20120529 : View Image
				( 
					kAMPCustomPanelViewWidgetID, // WidgetId			//<--20120529 : View Image
					kPMRsrcID_None, // RsrcId
					kBindNone, 
					Frame(4,4,530,415) //Frame (l,t,r,b) //Frame(4,4,260,415)
					kTrue, // Visible
					kTrue, // Enabled
					"", 
					{
					} 
				),
			} 
		),
		ButtonWidget 
		( 
			kAMPCheckOutButtonWidgetID, // The Identifier for this Widget
			kSysButtonPMRsrcId, // The Plugin ID
			kBindNone, // Frame binding
			Frame(714,479,805,499) 
			kTrue, // Is this visible
			kTrue, // Is this enabled
			"Check Out",  // The String value
		),
		ButtonWidget 
		( //kAMPRefreshButtonWidgetID,//kOKButtonWidgetID, // The Identifier for this Widget
			kAMPExitIssueButtonWidgetID, // The Identifier for this Widget
			kSysButtonPMRsrcId, // The Plugin ID
			kBindNone, // Frame binding
			Frame(614,479,705,499) 
			kTrue, // Is this visible
			kTrue, // Is this enabled
			"Cancel",  //"Exit Issue",  //kSDKDefOKButtonApplicationKey,  // The String value
		),
		ButtonWidget 
		( 
			kAMPRefreshButtonWidgetID, // The Identifier for this Widget
			kSysButtonPMRsrcId, // The Plugin ID
			kBindNone, // Frame binding
			Frame(4,479,95,499) 
			kTrue, // Is this visible
			kTrue, // Is this enabled
			"Refresh",  // The String value
		),
		AMPPreviousButton 
			//RollOverIconButtonWidget
		( // ADBEIconSuiteButtonView properties
			kPreviewImagePreviousWidgetID, // widget ID
			kPrevButtonResourceID, 
			kAMPPluginID, // icon, plugin ID
			//kBindRight | kBindTop, // frame binding
			kBindRight, // frame binding
			Frame(429,4,454,22) //  left, top, right, bottom
			kTrue, 
			kTrue, //kTrue, // visible
			//kTrue, // enabled
			kADBEIconSuiteButtonType, // CControlViewObservers - the button's observers.
			{
				{
					IID_IPREVBUTTONOBSERVER, 
					//IID_ISNIPRUNGOSELECTIONOBSERVER,
				}
			},
		),
		AMPNextButton 
			//RollOverIconButtonWidget //kWLBCmpEyeBallIcon
		( // ADBEIconSuiteButtonView properties
			kPreviewImageNextWidgetID, // widget ID
			kNextButtonResourceID, 
			kAMPPluginID, // icon, plugin ID
			//kBindRight | kBindTop, // frame binding
			kBindRight, // frame binding
			Frame(610,4,635,22) //  left, top, right, bottom
			kTrue, 
			kTrue, //kTrue, // visible
			//kTrue, // enabled
			kADBEIconSuiteButtonType, // CControlViewObservers - the button's observers. new
			{
				{
					IID_INEXTBUTTONOBSERVER, 
					//IID_ISNIPRUNGOSELECTIONOBSERVER,
				}
			},
		),
		StaticTextWidget 
		( 
			kAMPIssuesTextMessageWidgetID, // WidgetId (default=0)
			kSysStaticTextPMRsrcId, // RsrcId
			kBindNone, // Frame binding
			Frame(454,-1,610,22) // Frame: left, top, right, bottom.
			kTrue, 
			kTrue, // Visible, Enabled
			kAlignCenter, 
			kEllipsizeEnd, 
			kTrue, // Alignment, ellipsize style, convert ampersands
			"Preview", // Initial text.
			0,  // No associated widget
		),
		ClusterPanelWidget 
		( 
			kAMPClusterPanelWidgetID, // The Identifier for this Widget
			kPMRsrcID_None, // The Plugin ID
			kBindNone, // Frame binding
			Frame(269,444,515,470) 
			kTrue, // Is this visible
			kTrue, // Is this enabled
			"Resolution", 
			{
				RadioButtonWidget 
				( 
					kBscRadioHighResWidgetID, // The Identifier for this Widget
					kSysRadioButtonPMRsrcId, // The Plugin ID
					kBindNone, // Frame binding
					Frame(184,4,245,24) // Frame (left, top, right, bottom)
					kTrue, // Is this visible
					kTrue, // Is this enabled
					"High",  // The String value
				),
				RadioButtonWidget 
				( 
					kBscRadioLowResWidgetID, // The Identifier for this Widget
					kSysRadioButtonPMRsrcId, // The Plugin ID
					kBindNone, // Frame binding
					Frame(119,4,180,24) // Frame (left, top, right, bottom)
					kTrue, // Is this visible
					kTrue, // Is this enabled
					"Low",  // The String value
				),
				StaticTextWidget 
				( 
					kAMPImagResolutionWidgetID, // WidgetId
					kSysStaticTextPMRsrcId, // RsrcId
					kBindNone, // Frame binding
					Frame(-1,4,116,24) // Frame (left, top, right, bottom)
					kTrue, 
					kTrue, 
					kAlignLeft, // Visible, Enabled, Alignment
					kDontEllipsize, 
					kTrue, //**new element in InDesign 2.0: don't add any ellipses
					"Images Resolution:", // Text
					kBscTextEditBoxWidgetID,  // WidgetId for associated control for shortcut focus
				),
			} 
		),
		GroupPanelWidget 
		( 
			kAMPGroupPanelWidgetID, // The Identifier for this Widget
			kPMRsrcID_None, // The Plugin ID
			kBindNone, // Frame binding
			//Frame(269,24,535,445)
			Frame(269,24,805,445) 
			kFalse, // Is this visible
			kFalse, // Is this enabled
			kAMPGroupPanelTabWidgetID, 
			{
				AMPCViewPanelWidget //<--20120529 : View Image
				( 
					kAMPLeftPanelViewWidgetID, // WidgetId			//<--20120529 : View Image
					kPMRsrcID_None, // RsrcId
					kBindNone, //Frame(229,4,525,380) // Frame
					Frame(4,4,260,415) // Frame Frame(229,24,525,360)
					kTrue, // Visible
					kTrue, // Enabled
					"", 
					{
					} 
				),
				AMPCViewPanelWidget //<--20120529 : View Image
				( 
					kAMPRightPanelViewWidgetID, // WidgetId			//<--20120529 : View Image
					kPMRsrcID_None, // RsrcId
					kBindNone, //Frame(229,4,525,380) // Frame
					Frame(264,4,530,415) 
					kTrue, // Visible
					kTrue, // Enabled
					"", 
					{
					} 
				),
			} 
		),
	} 
};	//<--20120505
resource AMPIssuesNodeWidget (kPnlTrvNodeWidgetRsrcID + index_enUS) //<--20120505
{ 
	__FILE__, 
	__LINE__, 
	kAMPIssuesNodeWidgetId, 
	kPMRsrcID_None, // WidgetId, RsrcId			//<--20120505
	kBindLeft, //| kBindRight,					// Frame binding
	//Frame(0,0,414,20) // Frame (left, top, right, bottom)
	Frame(0,0,225,20) // Frame (left, top, right, bottom)
	kTrue, 
	kTrue, // Visible, Enabled
	"", // Panel name
	{
		// Drop down arrow
		//TreeExpanderWidget
		AMPluginTreeExpanderWidget 
		( 
			kTreeNodeExpanderWidgetID, // WidgetId
			kTreeBranchCollapsedRsrcID, // RsrcId for collapsed node icon
			kApplicationRsrcPluginID, // RsrcPlugin for collapsed node icon
			kBindNone, // Frame binding
			Frame(2,4,18,18) // Frame
			//Frame(2,4,7,18) // Frame
			kTrue, 
			kTrue, // Visible, Enabled
			kTreeBranchExpandedRsrcID, // RsrcId for expanded node icon
			kApplicationRsrcPluginID, // RsrcPlugin for expanded node icon
			kFalse, //kTrue, // Cmd-Click expands/collapses children
			kTrue, // Scroll to show children when expanded
			kIconCentering, //kIconNoCentering,
			kIconRaisedLook, // Sets the icon look -- (kIconRaisedLook | kIconFlushLook)
			kFalse,  // Bool integer sets whether the icon draws a well.
		),
		GenericPanelWidget 
		( 
			kAMPIssuesElementWidgetId, // WidgetId			//<--20120505
			kPMRsrcID_None, // RsrcId
			kBindLeft, //| kBindRight, // Frame binding
			//Frame(19,0,414,18) // Frame
			Frame(15,0,220,18) // Frame
			kTrue, 
			kTrue, // Visible, Enabled
			"", 
			{
				IconSuiteWidget 
				( 
					kAMPIconStoryMarkedWidgetID, // WidgetId
					kAMPPluginLockedResourceID, //kAMPluginPictureTopRsrcID,
					kAMPPluginID, // RsrcId
					kBindNone, // Frame binding
					Frame(0,2,15,17) 
					kFalse, 
					kTrue, // Visible, Enabled
					kStyledIconSuiteFlushedButtonType, 
					0,
				),
				PicIcoPictureWidget 
				( 
					kAMPPicIcoCustomPictureWidgetId, // WidgetId
					kAMPCheckboxOffRsrcID, 
					kAMPPluginID, // RsrcId
					kBindNone, // Frame binding
					Frame(0,-3,20,20) 
					kTrue, 
					kTrue, // Visible, Enabled
					kStyledIconSuiteFlushedButtonType, 
					0, // Custom fields
					kAMPCheckboxOffRsrcID, // Toggles between these two pictures
					kAMPCheckboxOnRsrcID,  // when picture is clicked on
				),
				InfoStaticTextWidget 
					//AMPStaticTextWidget
				( 
					kAMPIssuesNodeNameWidgetID, // WidgetId			//<--20120505
					kPMRsrcID_None, // RsrcId
					kBindLeft | kBindRight, // Frame binding
					//Frame(32,0,500,18),				// Frame
					Frame(20,0,500,25) // Frame
					kTrue, 
					kTrue, // Visible, Enabled
					kAlignLeft, // Alignment
					kDontEllipsize, 
					kTrue, // Ellipsize style, Convert ampersands
					//kEllipsizeEnd, kTrue,					// Ellipsize style, Convert ampersands
					"", // Text Control Data
					0, //kAMPPicIcoCustomPictureWidgetId,//kAMPCheckboxPageWidgetId,//0,								// WidgetId for associated control for shortcut focus
					kPaletteWindowSystemScriptFontId, 
					kPaletteWindowSystemScriptFontId,
				),
				IconSuiteWidget 
				( 
					kAMPIconLockOrReadyWidgetID, // WidgetId
					kAMPPluginEditedResourceID, //kAMPPluginReadyResourceID, //kAMPluginPictureTopRsrcID,
					kAMPPluginID, // RsrcId
					kBindNone, // Frame binding
					Frame(152,1,167,16) 
					kFalse, 
					kTrue, // Visible, Enabled
					kStyledIconSuiteFlushedButtonType, 
					0,
				),
				IconSuiteWidget 
				( 
					kAMPIconUnPublishWidgetID, // WidgetId
					kAMPPluginUnPulishedResourceID, //kAMPluginPictureTopRsrcID,
					kAMPPluginID, // RsrcId
					kBindNone, // Frame binding
					Frame(168,1,183,16) 
					kFalse, 
					kTrue, // Visible, Enabled
					kStyledIconSuiteFlushedButtonType, 
					0,
				),
			} 
		),
	} 
};		//<--20120505
resource AMPImgAssignmentDialogWidget (kImgAssignmentDlgRsrcID + index_enUS) 
{ 
	__FILE__, 
	__LINE__, 
	kAMPImgAssignmentDialogWidgetID, // WidgetID
	kPMRsrcID_None, // RsrcID
	kBindNone, // Binding
	Frame(0,0,300,300) // Frame (l,t,r,b)
	kTrue, 
	kTrue, // Visible, Enabled
	"Image Assignment", //kAMPImgAssignmentDialogTitleKey, // Dialog name
	{
		StaticTextWidget 
		( 
			kBscstatictextWidgetID, // WidgetId						//<--20120420
			kSysStaticTextPMRsrcId, // RsrcId
			kBindNone, // Frame binding
			Frame(4,4,250,20) // Frame (l,t,r,b) (84,124,275,144)
			kTrue, 
			kTrue, 
			kAlignLeft, // Visible, Enabled, Alignment
			kDontEllipsize, 
			kTrue, //**new element in InDesign 2.0: don't add any ellipses
			"Image Caption", // Text						//<--20120510
			kAMPImgCaptionEditTextWidgetID,  // WidgetId for associated control for shortcut focus
		),
		StaticTextWidget 
		( 
			kBscstatictextWidgetID, // WidgetId
			kSysStaticTextPMRsrcId, // RsrcId
			kBindNone, // Frame binding
			Frame(4,60,250,80) // Frame
			kTrue, 
			kTrue, 
			kAlignLeft, // Visible, Enabled, Alignment
			kDontEllipsize, 
			kTrue, //**new element in InDesign 2.0: don't add any ellipses
			"Stories to assign", // Text						//<--20120510
			kAMPImgCaptionEditTextWidgetID,  // WidgetId for associated control for shortcut focus
		),
		TextEditBoxWidget 
		( 
			kAMPImgCaptionEditTextWidgetID, // The Identifier for this Widget		//<--20120420
			kSysEditBoxPMRsrcId, // The Plugin ID
			kBindNone, // Frame binding
			Frame(4,25,292,45) //Frame(90,94,275,114)
			kTrue, // Is this visible
			kTrue, // Is this enabled
			0, // The WidgetID for the nudge button
			0, // A small nudge amount
			0, // A large nudge amount
			0, // The maximum number of characters
			kFalse, // integer readOnly value
			kFalse, // Notify on key stroke
			kFalse, // Enable range checking
			kFalse, // Allow blank entry
			0, // The upper limit
			0, // The lower limit
			"",  // The String value
		),
		AMPStoryTreeViewWidget //<--20120505
		( 
			kAMPStoryTreeViewWidgetID, 
			kPMRsrcID_None, // WidgetId, RsrcId
			kBindAll, 
			Frame(4,85,292,250) // Frame
			kTrue, 
			kTrue, // Visible, Enabled
			kTrue, // EraseBeforeDraw
			kInterfacePaletteFill, // InterfaceColor
			"", 
			kFalse, // Display root node
			kFalse, //kFalse, // Use H Scroll bar
			kTrue, // Use V scroll bar
			20, // fVScrollButtonIncrement
			20, // fVThumbScrollIncrement
			20, // fHScrollButtonIncrement
			20, // fHThumbScrollIncrement
			1, // Items selectable, 0 = No Selection, 1 = Single Selection, 2 = Multiple Selection
			kFalse, // Allow children from multiple parents to be selected
			kFalse, // Allow discontiguous selection
			{
			//The tree view is dynamically created.
			}
			{
				// CControlViewObservers - the listbox's observers.
				{
					IID_IOBSERVER,
					//IID_SELECTIONOBSERVER,
				}
			},  
		),
		ButtonWidget 
		( 
			kAMPAssignButtonWidgetID, // The Identifier for this Widget
			//kOKButtonWidgetID,
			kSysButtonPMRsrcId, // The Plugin ID
			kBindNone, // Frame binding
			Frame(210,270,290,290) 
			kTrue, // Is this visible
			kFalse, // Is this enabled
			"Assign",  // The String value
		),
		ButtonWidget 
		( 
			kAMPExitIssueButtonWidgetID, // The Identifier for this Widget
			//kCancelButton_WidgetID,
			kSysButtonPMRsrcId, // The Plugin ID
			kBindNone, // Frame binding
			Frame(120,270,200,290) 
			kTrue, // Is this visible
			kTrue, // Is this enabled
			kSDKDefCancelButtonApplicationKey,  // The String value
		),
		ButtonWidget 
		( // The Identifier for this Widget
			kOKButtonWidgetID, 
			kSysButtonPMRsrcId, // The Plugin ID
			kBindNone, // Frame binding
			Frame(210,270,290,290) 
			kFalse, // Is this visible
			kFalse, // Is this enabled
			"",  // The String value
		),
	} 
};	//<--20120505
resource AMPStoryNodeWidget (kStoryNodeWidgetRsrcID + index_enUS) 
{ 
	__FILE__, 
	__LINE__, 
	kAMPStoryNodeWidgetID, 
	kPMRsrcID_None, // WidgetId, RsrcId
	kBindLeft | kBindRight, // Frame binding
	//Frame(0,0,194,20) // Frame
	Frame(0,0,280,20) // Frame
	kTrue, 
	kTrue, // Visible, Enabled
	"", // Panel name
	{
		GenericPanelWidget 
		( 
			kAMPIssuesElementWidgetId, // WidgetId			//<--20120505
			kPMRsrcID_None, // RsrcId
			kBindLeft, //| kBindRight, // Frame binding
			//Frame(19,0,414,18) // Frame
			Frame(19,0,280,18) // Frame
			kTrue, 
			kTrue, // Visible, Enabled
			"", 
			{
				IconSuiteWidget 
				( 
					kCheckIconWidgetID, // The Identifier for this Widget
					kCheckIconResourceID, // The Resource ID
					kAMPPluginID, // The Plugin ID
					kBindNone, // Frame binding
					//Frame(100,0,339,75) //Frame(79,-1,295,75)
					Frame(0,0,18,18) // Frame
					kFalse, // Is this visible
					kFalse, // Is this enabled
					kStyledIconSuiteFlushedButtonType, // Raised/Lowered fStyles
					0,  // The Widget ID for associated control for shortcut focus
				),
				AMPTextWidget 
				( 
					kAMPStoryNodeNameWidgetID, 
					kPMRsrcID_None, // WidgetId, RsrcId
					kBindLeft | kBindRight, // Frame binding
					Frame(30,1,280,18) // Frame
					//Frame(0,1,300,18)									// Frame
					kTrue, 
					kTrue, 
					kAlignLeft, 
					kEllipsizeEnd, 
					kTrue, // Visible, Enabled, ellipsize style, convert ampersands
					"Story to assign", // Initial text
					0, // Associated widget for focus
					kPaletteWindowSystemScriptFontId, // default font
					kPaletteWindowSystemScriptHiliteFontId,  // for highlight state.
				),
			} 
		),
	/*
		// Just a info-static text widget with about-box text view to get white bg.
		AMPTextWidget
		(
			kAMPStoryNodeNameWidgetID, kPMRsrcID_None,				// WidgetId, RsrcId
			kBindLeft | kBindRight,								// Frame binding
			Frame(45,1,194,18)									// Frame
			//Frame(0,1,300,18)									// Frame
			kTrue, kTrue, kAlignLeft,kEllipsizeEnd,kTrue,		// Visible, Enabled, ellipsize style, convert ampersands
			"Story to assign",									// Initial text
			0,													// Associated widget for focus
			kPaletteWindowSystemScriptFontId,					// default font 
			kPaletteWindowSystemScriptHiliteFontId,				// for highlight state.
		),*/
	} 
};

resource PNGA(kAMPluginTopOutsidePictureRsrcID)			"TopOutside.png"
resource PNGA(kAMPluginTopInsidePictureRsrcID)			"TopInside.png"
resource PNGA(kAMPluginBottomOutsidePictureRsrcID)		"BottomOutside.png"
resource PNGA(kAMPluginBottomInsidePictureRsrcID)		"BottomInside.png"
resource PNGA(kAMPluginCenterVertPictureRsrcID)			"CenterVert.png"
resource PNGA(kAMPluginCenterHorzPictureRsrcID)			"CenterHorz.png"
resource PNGA(kAMPluginCenterCompPictureRsrcID)			"CenterComp.png"














resource AMPCAlertDialogBoss (kAMPProgressDlgResourceID + index_enUS) 
{ 
	__FILE__, 
	__LINE__, 
	AMPProgressDialogWidgetID, // WidgetID
	kPMRsrcID_None, // RsrcID
	kBindNone, // Binding
	Frame(0,0,471,136) // Frame (l,t,r,b)
	kTrue, 
	kTrue, // Visible, Enabled
	"Audience Media InDesign Plug-in", // Dialog name
	{
		DefaultButtonWidget 
		( 
			kOKButtonWidgetID, // The Identifier for this Widget
			kSysButtonPMRsrcId, // The Plugin ID
			kBindNone, // Frame binding
			Frame(354,104,450,124) 
			kTrue, 
			kTrue, // Visible, Enabled
			"",  // The String value
		),
		StaticMultiLineTextWidget 
		( 
			kAMPCAlertMessageWidgetID, //WidgetID
			kPMRsrcID_None, // kSysOwnerDrawListBoxPMRsrcId,//RsrcID
			kBindNone, //Binding
			Frame(54,19,450,95) //Frame
			kTrue, 
			kTrue, //Visible,Enabled
			// Static Text Attributes
			kAlignLeft, // Alignment
			kEllipsizeMiddle, 
			kTrue, // Ellipsize style, Convert ampersands
			0, //WidgetID of scrollbar
			kDialogWindowFontId, //kPaletteWindowFontId,//InterfaceFontID
			3, //Number of pixels between lines
			2, 
			0, //Inset amount
			"",  //Initial text
		),
		ButtonWidget 
		( 
			kAMPCAlertButton1WidgetID, // WidgetID
			kSysButtonPMRsrcId, // RsrcID
			kBindNone, // Binding
			Frame(54,104,150,124) // Frame (l,t,r,b)
			kTrue, 
			kTrue, // Visible, Enabled
			"",  // Change to Reset on option-click.
		),
		ButtonWidget 
		( 
			kAMPCAlertButton2WidgetID, // The Identifier for this Widget
			kSysButtonPMRsrcId, // The Plugin ID
			kBindNone, // Frame binding
			Frame(249,104,345,125) 
			kTrue, 
			kTrue, // Visible, Enabled
			"",  // The String value
		),
	} 
};














resource AMPProxyDialogBoss (kAMPProxyDlgResourceID + index_enUS) 
{ 
	__FILE__, 
	__LINE__, 
	AMPProxyDialogWidgetID, // WidgetID
	kPMRsrcID_None, // RsrcID
	kBindNone, // Binding
	Frame(0,0,361,266) // Frame (l,t,r,b)
	kTrue, 
	kTrue, // Visible, Enabled
	"Proxies Settings", // Dialog name
	{
		// Toan add here, port setting
		ClusterPanelWidget 
		( 
			kAMPClusterProxyWidgetID, // The Identifier for this Widget
			kPMRsrcID_None, // The Plugin ID
			kBindNone, // Frame binding
			Frame(9,9,350,65) //Frame(269,444,585,470)
			kTrue, // Is this visible
			kTrue, // Is this enabled
			"Proxy", 
			{
				RadioButtonWidget 
				( 
					kAMPRadioAutoWidgetID, // The Identifier for this Widget
					kSysRadioButtonPMRsrcId, // The Plugin ID
					kBindNone, // Frame binding
					Frame(19,4,330,23) // Frame (left, top, right, bottom)
					kTrue, // Is this visible
					kTrue, // Is this enabled
					" No proxy setting",  // The String value
				),
				RadioButtonWidget 
				( 
					kAMPRadioManualWidgetID, // The Identifier for this Widget
					kSysRadioButtonPMRsrcId, // The Plugin ID
					kBindNone, // Frame binding
					Frame(19,29,330,48) // Frame (left, top, right, bottom)
					kTrue, // Is this visible
					kTrue, // Is this enabled
					" Manually configure proxy setting",  // The String value
				),
			} 
		),
		GroupPanelWidget 
		( 
			kAMPProxyGroupAllWidgetID, // The Identifier for this Widget
			kPMRsrcID_None, // The Resource ID
			kBindNone, // Frame binding
			Frame(9,74,350,235) 
			kTrue, // Is this visible
			kFalse, // Is this enabled
			0, //kAMPProxyGroupPanelWidgetID,
			{
				StaticTextWidget 
				( 
					kAMPIssuesTextMessageWidgetID, // WidgetId (default=0)
					kSysStaticTextPMRsrcId, // RsrcId
					kBindNone, // Frame binding
					Frame(4,19,204,39) // Frame: left, top, right, bottom.
					kTrue, 
					kTrue, // Visible, Enabled
					kAlignLeft, 
					kEllipsizeEnd, 
					kTrue, // Alignment, ellipsize style, convert ampersands
					"Web proxy server:", // Initial text.
					0,  // No associated widget
				),
				StaticTextWidget 
				( 
					kAMPIssuesTextMessageWidgetID, // WidgetId (default=0)
					kSysStaticTextPMRsrcId, // RsrcId
					kBindNone, // Frame binding
					Frame(239,19,319,39) // Frame: left, top, right, bottom.
					kTrue, 
					kTrue, // Visible, Enabled
					kAlignLeft, 
					kEllipsizeEnd, 
					kTrue, // Alignment, ellipsize style, convert ampersands
					"Port:", // Initial text.
					0,  // No associated widget
				),
				TextEditBoxWidget 
				( 
					kAMPProxyIPWidgetID, // The Identifier for this Widget		//<--20120420
					kSysEditBoxPMRsrcId, // The Plugin ID
					kBindNone, // Frame binding
					Frame(4,39,210,58) //Frame(90,94,275,114)
					kTrue, // Is this visible
					kTrue, // Is this enabled
					0, // The WidgetID for the nudge button
					0, // A small nudge amount
					0, // A large nudge amount
					0, // The maximum number of characters
					kFalse, // integer readOnly value
					kFalse, // Notify on key stroke
					kFalse, // Enable range checking
					kFalse, // Allow blank entry
					0, // The upper limit
					0, // The lower limit
					"",  // The String value
				),
				TextEditBoxWidget 
				( 
					kAMPProxyPortWidgetID, // The Identifier for this Widget		//<--20120420
					kSysEditBoxPMRsrcId, // The Plugin ID
					kBindNone, // Frame binding
					Frame(239,39,330,58) //Frame(90,94,275,114)
					kTrue, // Is this visible
					kTrue, // Is this enabled
					0, // The WidgetID for the nudge button
					0, // A small nudge amount
					0, // A large nudge amount
					0, // The maximum number of characters
					kFalse, // integer readOnly value
					kFalse, // Notify on key stroke
					kFalse, // Enable range checking
					kFalse, // Allow blank entry
					0, // The upper limit
					0, // The lower limit
					"",  // The String value
				),
				CheckBoxWidget 
				( 
					kAMPCheckboxEnablePassWidgetID, // The Identifier for this Widget
					kSysCheckBoxPMRsrcId, // The Resource ID
					kBindNone, // Frame binding
					Frame(4,69,270,89) 
					kTrue, // Is this visible
					kTrue, // Is this enabled
					kAlignLeft, // The alignment of the parent widget
					"Proxy server requires password",  // The String value
				),
				GenericPanelWidget 
				( 
					kAMPProxyGroupPassWidgetID, // The Identifier for this Widget
					kPMRsrcID_None, // The Plugin ID
					kBindNone, // Frame binding
					Frame(4,94,335,155) 
					kTrue, // Is this visible
					kFalse, // Is this enabled
					"", 
					{
						StaticTextWidget 
						( 
							kBscstatictextWidgetID, // WidgetId
							kSysStaticTextPMRsrcId, // RsrcId
							kBindNone, // Frame binding
							Frame(10,4,79,24) // Frame (left, top, right, bottom)
							kTrue, 
							kTrue, 
							kAlignLeft, // Visible, Enabled, Alignment
							kDontEllipsize, 
							kTrue, //**new element in InDesign 2.0: don't add any ellipses
							"Username", // Text
							0,  // WidgetId for associated control for shortcut focus
						),
						StaticTextWidget 
						( 
							kBscstatictextWidgetID, // WidgetId
							kSysStaticTextPMRsrcId, // RsrcId
							kBindNone, // Frame binding
							Frame(10,34,79,55) // Frame (left, top, right, bottom)
							kTrue, 
							kTrue, 
							kAlignLeft, // Visible, Enabled, Alignment
							kDontEllipsize, 
							kTrue, //**new element in InDesign 2.0: don't add any ellipses
							"Password", // Text
							0,  // WidgetId for associated control for shortcut focus
						),
						TextEditBoxWidget 
						( 
							kAMPProxyUserWidgetID, // The Identifier for this Widget		//<--20120420
							kSysEditBoxPMRsrcId, // The Plugin ID
							kBindNone, // Frame binding
							Frame(80,4,325,23) //Frame(90,94,275,114)
							kTrue, // Is this visible
							kTrue, // Is this enabled
							0, // The WidgetID for the nudge button
							0, // A small nudge amount
							0, // A large nudge amount
							0, // The maximum number of characters
							kFalse, // integer readOnly value
							kFalse, // Notify on key stroke
							kFalse, // Enable range checking
							kFalse, // Allow blank entry
							0, // The upper limit
							0, // The lower limit
							"",  // The String value
						),
						PasswordEditBoxWidget 
						( 
							kAMPProxyPassWidgetID, // The Identifier for this Widget		//<--20120420
							kSysEditBoxPMRsrcId, // The Plugin ID
							kBindNone, // Frame binding
							Frame(80,34,325,53) //Frame(90,94,275,114)
							kTrue, // Is this visible
							kTrue, // Is this enabled
							0, // The WidgetID for the nudge button
							0, // A small nudge amount
							0, // A large nudge amount
							0, // The maximum number of characters
							kFalse, // integer readOnly value
							kFalse, // Notify on key stroke
							kFalse, // Enable range checking
							kFalse, // Allow blank entry
							0, // The upper limit
							0, // The lower limit
							"",  // The String value
						),
					} 
				),
			} 
		),
		ButtonWidget 
		( 
			kOKButtonWidgetID, 
			kSysButtonPMRsrcId, // The Plugin ID
			kBindNone, // Frame binding
			Frame(264,239,344,259) 
			kTrue, // Is this visible
			kTrue, // Is this enabled
			"Apply",  // The String value
		),
		CancelButtonWidget 
		( 
			kCancelButton_WidgetID, // WidgetID
			kSysButtonPMRsrcId, // RsrcID
			kBindNone, // Binding
			Frame(174,239,254,259) 
			kTrue, 
			kTrue, // Visible, Enabled
			kSDKDefCancelButtonApplicationKey, // Button name
			kTrue,  // Change to Reset on option-click.
		),
	} 
};




resource AMPAlrtCheckinDialogBoss (kAMPALrtCheckInDlgResourceID + index_enUS) 
{ 
	__FILE__, 
	__LINE__, 
	AMPAlrtCheckinDialogWidgetID, // WidgetID
	kPMRsrcID_None, // RsrcID
	kBindNone, // Binding
	Frame(0,0,481,106) // Frame (l,t,r,b)
	kTrue, 
	kTrue, // Visible, Enabled
	"Audience Media InDesign Plug-in", // Dialog name
	{
		DefaultButtonWidget 
		( 
			kOKButtonWidgetID, // The Identifier for this Widget
			kSysButtonPMRsrcId, // The Plugin ID
			kBindNone, // Frame binding
			Frame(324,74,465,94) //1
			kTrue, 
			kTrue, // Visible, Enabled
			"",  // The String value
		),
		StaticMultiLineTextWidget 
		( 
			kAMPCAlertMessageWidgetID, //WidgetID
			kPMRsrcID_None, // kSysOwnerDrawListBoxPMRsrcId,//RsrcID
			kBindNone, //Binding
			Frame(54,4,465,65) //Frame
			kTrue, 
			kTrue, //Visible,Enabled
			// Static Text Attributes
			kAlignLeft, // Alignment
			kEllipsizeMiddle, 
			kTrue, // Ellipsize style, Convert ampersands
			0, //WidgetID of scrollbar
			kDialogWindowFontId, //kPaletteWindowFontId,//InterfaceFontID
			3, //Number of pixels between lines
			2, 
			0, //Inset amount
			"",  //Initial text
		),
		ButtonWidget 
		( 
			kAMPCAlertButton1WidgetID, // WidgetID
			kSysButtonPMRsrcId, // RsrcID
			kBindNone, // Binding
			Frame(54,74,218,94) //2
			kTrue, 
			kTrue, // Visible, Enabled
			"",  // Change to Reset on option-click.
		),
		ButtonWidget 
		( 
			kAMPCAlertButton2WidgetID, // The Identifier for this Widget
			kSysButtonPMRsrcId, // The Plugin ID
			kBindNone, // Frame binding
			Frame(239,74,315,95) //3
			kTrue, 
			kTrue, // Visible, Enabled
			"",  // The String value
		),
	} 
};



resource AMPFunctionProDialogBoss (kAMPAFunctionProDlgResourceID + index_enUS) 
{ 
	__FILE__, 
	__LINE__, 
	AMPFunctionProDialogWidgetID, // WidgetID
	kPMRsrcID_None, // RsrcID
	kBindNone, // Binding
	Frame(0,0,376,71) // Frame (l,t,r,b)
	kTrue, 
	kTrue, // Visible, Enabled
	"Audience Media InDesign Plug-in", // Dialog name
	{
		StaticMultiLineTextWidget 
		( 
			kAMPCAlertMessageWidgetID, //WidgetID
			kPMRsrcID_None, // kSysOwnerDrawListBoxPMRsrcId,//RsrcID
			kBindNone, //Binding
			Frame(14,4,360,35) //Frame
			kTrue, 
			kTrue, //Visible,Enabled
			// Static Text Attributes
			kAlignLeft, // Alignment
			kEllipsizeMiddle, 
			kTrue, // Ellipsize style, Convert ampersands
			0, //WidgetID of scrollbar
			kPaletteWindowFontId, //InterfaceFontID//kDialogWindowFontId
			3, //Number of pixels between lines
			2, 
			0, //Inset amount
			"Please wait...",  //Initial text
		),
		ProgressBarWidget 
		( 
			kProgressBarWidgetBoss, 
			kPMRsrcID_None, 
			kBindNone, 
			Frame(14,39,360,55) 
			kTrue, 
			kTrue, 
			0, 
			0, 
			0, 
			0,
		),
	} 
};

#endif // __ODFRC__

#include "AMP_enUS.fr"
#include "AMP_jaJP.fr"

//  Code generated by DollyXs code generator